[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

Amaury Forgeot d'Arc report at bugs.python.org
Wed Jan 14 11:25:25 CET 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The problem has two causes:
- IOError is raised when no compiler is found. DistutilsPlatformError
should be used instead, this was fixed by #4702.

- the distutils.util.grok_environment_error function transforms a
IOError("Unable to find vcvarsall.bat") into "error: None".

This function should not be used IMO. Its docstring claims that it
"Handles Python 1.5.1 and 1.5.2 styles", but str() does a better job...

Patch attached.

----------
keywords: +needs review, patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file12739/distutils_ioerror.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4931>
_______________________________________


More information about the Python-bugs-list mailing list