This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pjenvey
Recipients pjenvey
Date 2008-12-19.21:33:05
SpamBayes Score 2.3680993e-06
Marked as misclassified No
Message-id <1229722389.12.0.525860035611.issue4702@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-12-19 21:33:09pjenveysetrecipients: + pjenvey
2008-12-19 21:33:09pjenveysetmessageid: <1229722389.12.0.525860035611.issue4702@psf.upfronthosting.co.za>
2008-12-19 21:33:08pjenveylinkissue4702 messages
2008-12-19 21:33:06pjenveycreate