[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

Bill Janssen report at bugs.python.org
Mon Jan 2 21:25:38 CET 2012


Bill Janssen <bill.janssen at gmail.com> added the comment:

Actually, when using setup.py with MinGW, you just need to say the right thing:

  % python setup.py build --compiler=mingw32 install

That removes the check for vcvarsall.bat.

Bill

On Mon, Jan 2, 2012 at 6:19 AM, Piotr Dobrogost <report at bugs.python.org> wrote:
>
> Piotr Dobrogost <pd at python.dobrogost.net> added the comment:
>
> @Lehmann
>
> You have to have either Visual Studio 2008 or Visual C++ Express 2008 installed. The folder where vcvarsall.bat file is being looked for is read from the registry. It's either HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Setup\VC (for Visual Studio) or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VCExpress\9.0\Setup\VC (for Visual C++ Express).
>
> ----------
> nosy: +piotr.dobrogost
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue2698>
> _______________________________________

----------

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


More information about the Python-bugs-list mailing list