[New-bugs-announce] [issue4702] [PATCH] msvc9compiler raises IOError when no compiler found instead of DistutilsError
Philip Jenvey
report at bugs.python.org
Fri Dec 19 22:33:09 CET 2008
New submission from Philip Jenvey <pjenvey at users.sourceforge.net>:
Python 2.6's new msvc9compiler misbehaves when it can't find a compiler
(actually a utility of the missing compiler) in its query_vcvarsall() --
it raises an IOError instead of a typical distutils error
build tools expect a consistent set of potential exceptions from the
compiler suites, such as CCompilerError, DistutilsExecError,
DistutilsPlatformError, etc. Distributions like simplejson, Genshi, etc.
look for these errors when compiling their optional C extension speedups
as an indication that there's no compiler, and to fallback to their pure
python counterparts
An IOError in this case just doesn't make sense
This patch changes them to DistutilsExecErrors. Maybe it should be
DistutilsPlatformError -- whatever, just not IOError
I think this should be included in 2.6.2
----------
components: Distutils
files: msvc9_ioerror.diff
keywords: patch
messages: 78070
nosy: pjenvey
severity: normal
status: open
title: [PATCH] msvc9compiler raises IOError when no compiler found instead of DistutilsError
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file12404/msvc9_ioerror.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4702>
_______________________________________
More information about the New-bugs-announce
mailing list