[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2016-12-15 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2016-12-15 Thread Matteo Bertini
Matteo Bertini added the comment: I'm back on this issue with a minimal patch, and a longer motivation. Distutils does not support Visual C++ for Python compiler, but it could, with a one-line patch. The proposed workaround is to use `setuptools`. But, we are not alone in this World, am I

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-06-23 Thread Nathan Jensen
Nathan Jensen added the comment: Is it possible to get the license issues resolved and get this fixed in 2.7.11 since that's the last 2.7 release that is currently scheduled? -- nosy: +Nathan Jensen ___ Python tracker rep...@bugs.python.org

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-06-23 Thread Steve Dower
Steve Dower added the comment: That's two separate questions: Is it possible to get the license issues resolved AFAICT they are resolved. Go ahead and copy the relevant code from setuptools. get this fixed in 2.7.11 Why do you need/want to build without setuptools? --

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-06-23 Thread Nathan Jensen
Nathan Jensen added the comment: Ok, I was confused since the ticket was still marked as Open. We are trying to make an open source CPython extension available for download and building and we don't want to add a dependency on setuptools. We will patch our build commands based on the

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-06-23 Thread Steve Dower
Changes by Steve Dower steve.do...@microsoft.com: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246 ___

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-04-06 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246 ___ ___

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: The setuptools code is licensed under the ZPL and PSF licenses. If either of those licenses are insufficient, I'm happy to release my contribution in that file to the public domain. -- ___ Python tracker

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Setuptools just does a monkey patch of distutils, so importing it is sufficient. Or you can find the patching in the setuptools source and copy it into your setup.py file. -- ___ Python tracker rep...@bugs.python.org

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: Thanks! However, importing setuptools causes a string of errors about PYTHONPATH and .pth files (even on a linux system) In addition, a monkeypatched version of find_vcvarsall allowed things to run, but it seems finding plain C libraries with Visual C++ for

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Python does not support being built with MinGW, but we have support to build extensions with MinGW. It isn't great support, and we're open to patches/contributions (none of our core Windows devs use MinGW AFAIK). And yes, VC is different from MinGW because MinGW

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Very ugly :-) And also incorrect on 64-bit interpreters (but not 32-bit interpreters on 64-bit machines, oddly enough), and machines where the user has installed the compiler just for themselves. I'd seriously suggest copying the monkey patch from

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: Thanks! If I do copy this patch, do I need to add anything to my license text other than a reference in the file itself? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Mark Lawrence
Mark Lawrence added the comment: @Michael in case you are not aware Python does not support MINGW. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246 ___

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: @Mark I don't quite understand what you're saying. Distutils supports it, provided you add a line to distutils.cfg. I've been using the PythonXY versions of Python with MinGW (everything before 2.7.9.0) to happily compile for nearly 4 years now. Regarding

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: You could also distribute wheels for your Windows users, which they will appreciate much more than being told to install MinGW. (If you do go the latter route, WinPython is a pretty good distribution that sets that stuff up fairly transparently.) --

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Hard to be sure. It was my contribution originally, and I'm okay to remain unattributed, but I've nosied Jason so he can answer authoritatively (especially since he rewrote most of my original contribution to make it work better :) ). -- nosy:

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: Is there anyway to fix this without using setuptools? I'm using distutils to compile on the fly which has worked brilliantly for the last few years, not sure I want to destabilize everything by switching to setuptools. -- nosy: +Michael Clerx

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Mark Lawrence
Mark Lawrence added the comment: @Michael my very old work around here http://www.mail-archive.com/python-win32@python.org/msg06755.html may help. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-16 Thread Steve Dower
Steve Dower added the comment: Setuptools has the code to find the compiler package. We deliberately put it there instead of in distutils to make sure more people would get it. I should probably port the extra check into 2.7.10, but the immediate fix is to import setuptools. --

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-16 Thread Gregory Szorc
Gregory Szorc added the comment: Thanks, Steve. The package I was trying to build has its setup.py importing setup from distutils, not setuptools. I'll see about porting them to the future. For posterity, https://bitbucket.org/pypa/setuptools/issue/258, which was first released in setuptools

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-16 Thread Steve Dower
Steve Dower added the comment: FWIW, at some point I will need to do some serious work on this code for Python 3.5, so I'll certainly take your suggestions into account there. But I won't be doing the same for old versions of Python - at most 2.7 may get a check for the extra registry key,

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-15 Thread Gregory Szorc
Gregory Szorc added the comment: The first sentence in my original report is ambiguous. I tested with distutils on Python 2.7.9. But considering the code in question hasn't changed since 2011, I think it's safe to say this isn't a regression in CPython. --

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-15 Thread Gregory Szorc
New submission from Gregory Szorc: distutils as of Python 2.7.9 is unable to locate vcvarsall.bat if Visual C++ Compiler for Python is the only Visual Studio distribution installed. STR: 1) Do a fresh install of Windows + all updates 2) Install Microsoft Visual C++ Compiler for Python from

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-15 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246 ___ ___ Python-bugs-list