
Hey folks, I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer. I downloaded Visual C++ 2010 Express, and it needs to convert the .vcproj files into .vcxproj files, but it fails. I can't figure out where to get VC 9, all I see is 2008 and 2010. Can someone with experience share the best practices for building Python on Windows? In particular, what is the most recent compiler known to work and where can I download it? Thanks, Reid

On Sat, Jul 3, 2010 at 2:26 PM, Reid Kleckner <reid.kleckner@gmail.com> wrote:
Hey folks,
I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer. I downloaded Visual C++ 2010 Express, and it needs to convert the .vcproj files into .vcxproj files, but it fails.
I can't figure out where to get VC 9, all I see is 2008 and 2010.
VS 2008 == VC 9 == MSVC 15 David

I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer.
Which docs did you look at specifically that said "and newer"? That would be a bug.
I downloaded Visual C++ 2010 Express, and it needs to convert the .vcproj files into .vcxproj files, but it fails.
Please take a look at PCbuild/readme.txt. It tells you to install one of the Visual Studio 2008 editions. Regards, Martin

Am 03.07.2010 09:00, schrieb "Martin v. Löwis":
I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer.
Which docs did you look at specifically that said "and newer"? That would be a bug.
The readme.txt in the PCbuild directory contains the sentence "Microsoft Visual C++ 2008 Express Edition is required at the very least". The wording could be interpreted as "2008 at very least" instead of "Express Edition at very least". Christian

On 7/3/2010 10:34 AM, Christian Heimes wrote:
Which docs did you look at specifically that said "and newer"? That would be a bug.
The readme.txt in the PCbuild directory contains the sentence "Microsoft Visual C++ 2008 Express Edition is required at the very least". The wording could be interpreted as "2008 at very least"
That I how I would first read it, not already knowing differently.
instead of "Express Edition at very least".
I did not know that there was anything 'less' than Express Edition. Something like "Building Pythonx.y requires at least the Express Edition of Visual C++ 2008." or "Building Pyx.y requires Visual C++ 2008. Use the free Express Edition or one of its paid upgrades." -- Terry Jan Reedy

Am 03.07.2010 16:34, schrieb Christian Heimes:
Am 03.07.2010 09:00, schrieb "Martin v. Löwis":
I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer.
Which docs did you look at specifically that said "and newer"? That would be a bug.
The readme.txt in the PCbuild directory contains the sentence "Microsoft Visual C++ 2008 Express Edition is required at the very least". The wording could be interpreted as "2008 at very least" instead of "Express Edition at very least".
That's what I expected to get as an answer - interestingly enough, Reid was looking at some other place (the FAQ) that literally said "and newer". I'd call that an error, even though, technically, converting the projects to VS 2010 "ought to work" (i.e. it did after I committed some fixes to make it work). Regards, Martin

On Sat, Jul 3, 2010 at 15:40, "Martin v. Löwis" <martin@v.loewis.de> wrote:
Am 03.07.2010 16:34, schrieb Christian Heimes:
Am 03.07.2010 09:00, schrieb "Martin v. Löwis":
I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer.
Which docs did you look at specifically that said "and newer"? That would be a bug.
The readme.txt in the PCbuild directory contains the sentence "Microsoft Visual C++ 2008 Express Edition is required at the very least". The wording could be interpreted as "2008 at very least" instead of "Express Edition at very least".
That's what I expected to get as an answer - interestingly enough, Reid was looking at some other place (the FAQ) that literally said "and newer". I'd call that an error, even though, technically, converting the projects to VS 2010 "ought to work" (i.e. it did after I committed some fixes to make it work).
FAQ updated with "and newer" stripped out. -Brett
Regards, Martin
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/brett%40python.org

On Sat, Jul 3, 2010 at 12:00 AM, "Martin v. Löwis" <martin@v.loewis.de> wrote:
I'm trying to test out a patch to add a timeout in subprocess.py on Windows, so I need to build Python with Visual Studio. The docs say the files in PCBuild/ work with VC 9 and newer.
Which docs did you look at specifically that said "and newer"? That would be a bug.
On the developer FAQ page it says: http://www.python.org/dev/faq/#id8 "For VC 9 and newer, the PCbuild directory contains the build files." But I'll go get 2008. Thanks! Reid
participants (6)
-
"Martin v. Löwis"
-
Brett Cannon
-
Christian Heimes
-
David Cournapeau
-
Reid Kleckner
-
Terry Reedy