<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">If you update setuptools to 6.0 or later, it shouldn't have any trouble detecting it. No need to set any environment variables.<br>
<br>
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.<br>
<br>
Cheers,<br>
Steve<br>
<br>
Top-posted from my Windows Phone</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">From:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:g.brandl@gmx.net">Georg Brandl</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Sent:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">ý10/ý5/ý2014 3:23</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">To:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:python-dev@python.org">python-dev@python.org</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Subject:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [Python-Dev] Microsoft Visual C++ Compiler for Python 2.7</span><br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I just tried out the compiler and built wininst and wheel dists. Thanks!<br>
<br>
distutils was *almost* fine using it, but for two snags:<br>
<br>
* I had to set VS90COMNTOOLS<br>
<br>
* distutils expects vcvarsall.bat in VC, while you have it in the parent dir<br>
<br>
The first could be set by the installer of your package. But if it is not<br>
feasible to do so, setting an envvar is something that developers can surely<br>
be expected to do with instruction.<br>
<br>
The second is a little more inconvenient. Wouldn't it be possible to put<br>
the .bat file in the "right" folder, or if it has to be there, put *another*<br>
one in "VC"? (That is what I did.)<br>
<br>
cheers,<br>
Georg<br>
<br>
On 09/27/2014 05:16 PM, Steve Dower wrote:<br>
> Plain distutils won't detect it. It would be easy enough to fix 2.7.9, but<br>
> "update Python" is a big/impossible ask for a lot of people, whereas "update<br>
> setuptools" is easy and also covers Python 2.6 and <3.3.<br>
> <br>
> The compiler installer can't set the keys that distutils looks for without<br>
> losing the per-user installation, and it may also corrupt actual installs of<br>
> Visual Studio. A monkey patch via setuptools was the best way to handle this -<br>
> covers pip and Cython and can be ported to other libraries that care but avoid<br>
> setuptools.<br>
> <br>
> Now that we have a patch, there's very limited value in fixing 2.7.9, IMO. But<br>
> I'm willing to be convinced - we can always add a version check to the<br>
> setuptools patch.<br>
> <br>
> Cheers,<br>
> Steve<br>
<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
Python-Dev@python.org<br>
<a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com">
https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com</a><br>
</div>
</span></font>
</body>
</html>