[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

Steve Dower report at bugs.python.org
Tue Apr 9 22:39:38 CEST 2013


Steve Dower added the comment:

I've added a patch that replaces query_vcvarsall() with an implementation that does not try and use the batch file. Instead, the functionality of the batch file (effectively, reading the base path from the registry and appending constants) is reproduced in Python code.

(There is a second patch for 2.7, since winreg/_winreg is different between the two.)

There is no reason to expect that the installation layout of VC9 and VC10 will change at this stage, though future updates may be required for new versions (though I've already added the mapping for VC11 - not that we're building Python with that one yet).

I have left find_vcvarsall() in there, even though it is no longer used, in case other tools are monkeypatching to work around the existing issue.

----------
Added file: http://bugs.python.org/file29754/msvccompiler9_33.diff

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


More information about the Python-bugs-list mailing list