[Python-Dev] Microsoft Visual C++ Compiler for Python 2.7
Steve Dower
Steve.Dower at microsoft.com
Sun Oct 5 17:03:03 CEST 2014
If you update setuptools to 6.0 or later, it shouldn't have any trouble detecting it. No need to set any environment variables.
FWIW, I put my vcvarsall.bat where I did because it's not the original version. All the files in VC and WinSDK after unmodified from their original release.
Cheers,
Steve
Top-posted from my Windows Phone
________________________________
From: Georg Brandl<mailto:g.brandl at gmx.net>
Sent: 10/5/2014 3:23
To: python-dev at python.org<mailto:python-dev at python.org>
Subject: Re: [Python-Dev] Microsoft Visual C++ Compiler for Python 2.7
I just tried out the compiler and built wininst and wheel dists. Thanks!
distutils was *almost* fine using it, but for two snags:
* I had to set VS90COMNTOOLS
* distutils expects vcvarsall.bat in VC, while you have it in the parent dir
The first could be set by the installer of your package. But if it is not
feasible to do so, setting an envvar is something that developers can surely
be expected to do with instruction.
The second is a little more inconvenient. Wouldn't it be possible to put
the .bat file in the "right" folder, or if it has to be there, put *another*
one in "VC"? (That is what I did.)
cheers,
Georg
On 09/27/2014 05:16 PM, Steve Dower wrote:
> Plain distutils won't detect it. It would be easy enough to fix 2.7.9, but
> "update Python" is a big/impossible ask for a lot of people, whereas "update
> setuptools" is easy and also covers Python 2.6 and <3.3.
>
> The compiler installer can't set the keys that distutils looks for without
> losing the per-user installation, and it may also corrupt actual installs of
> Visual Studio. A monkey patch via setuptools was the best way to handle this -
> covers pip and Cython and can be ported to other libraries that care but avoid
> setuptools.
>
> Now that we have a patch, there's very limited value in fixing 2.7.9, IMO. But
> I'm willing to be convinced - we can always add a version check to the
> setuptools patch.
>
> Cheers,
> Steve
_______________________________________________
Python-Dev mailing list
Python-Dev at python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20141005/b8dd1ecf/attachment.html>
More information about the Python-Dev
mailing list