New submission from Philip Jenvey <pjen...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue4702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to