Re: [Python-Dev] Compile Python on Windows (OpenSSL)
Hi, I installed the SP1 for Visual Studio 2010, and it looks like that it broke my Windows SDK 7.1 (setenv was missing, cl.exe was also missing). I uninstalled the SDK 7.1, and then I saw that a patch is required to use Windows SDK 7.1 with Visual Studio 2010 SP1. Ah. Too late. I don't understand the link between the SDK and Visual Studio. There are not separated directories? And now I cannot find Windows SDK 7.1 anymore. It looks like it disappeared from microsoft.com. The SDK 7.1 was released in 2010, so it's now quite old, but it worked well! Can I use the SDK 8.0 or 8.1 to build Python extensions for Python 3.3 and 3.4? It took me several hours to have a working platform to build my Python extensions for Python 2.7, 3.3 and 3.4, in 32 and 64 bits with automated scripts to run all commands. And now it doesn't work anymore :-( Victor 2015-01-13 23:46 GMT+01:00 M.-A. Lemburg m...@egenix.com: On 13.01.2015 23:42, Brian Curtin wrote: On Tue, Jan 13, 2015 at 4:36 PM, Victor Stinner victor.stin...@gmail.com wrote: 2015-01-13 23:18 GMT+01:00 Steve Dower steve.do...@microsoft.com: Technically, Python 3.5 requires Visual Studio 2015 For me, it's *very* difficult to find how to install Visual Studio. There are many different websites and web pages which mention Visual Studio with a lot of versions and flavors (Express, Community, Ultimate, etc.). Visual Studio 2015 was not released yet :-/ My VM has only a disk of 40 GB. Only 12 GB are free. I already have VS 2008 Express and VS 2010 Express installed. I understood that Ultimate includes a *lot* of things, not only a C compiler. I found a free Visual Studio which is in fact Visual Studio 2013 Community and I read that it's not free. I sent an email to Brian Curtin to ask to renew my MSDN account. He didn't reply yet. I saw that and will send it on, but it's still going to take some time to process - usually a week or so. In the meantime, the first result searching for Visual Studio 2015 came up with http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx, which seems to give you VS2015. I haven't tried to run it since I'm not on Windows at the moment, but it looks correct. Just a note of caution: for older preview releases of VS the only way to get back to a clean system was to reinstall Windows. I don't know whether this will be different with VS 2015, but if you care for your VM, you should probably create a snapshot before installing VS 2015 preview to make it easy to revert back, e.g. to install the final VS 2015 version. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 13 2015) Python Projects, Coaching and Consulting ... http://www.egenix.com/ mxODBC Plone/Zope Database Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ 2015-01-09: Released eGenix pyOpenSSL 0.13.7 ... http://egenix.com/go68 2015-01-20: Python Meeting Duesseldorf ...http://egenix.com/go69 : Try our mxODBC.Connect Python Database Interface for free ! :: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On Thu, Jan 15, 2015 at 3:30 PM, Victor Stinner victor.stin...@gmail.com wrote: Hi, I installed the SP1 for Visual Studio 2010, and it looks like that it broke my Windows SDK 7.1 (setenv was missing, cl.exe was also missing). I uninstalled the SDK 7.1, and then I saw that a patch is required to use Windows SDK 7.1 with Visual Studio 2010 SP1. Ah. Too late. I don't understand the link between the SDK and Visual Studio. There are not separated directories? And now I cannot find Windows SDK 7.1 anymore. It looks like it disappeared from microsoft.com. The SDK 7.1 was released in 2010, so it's now quite old, but it worked well! http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1 http://www.microsoft.com/en-us/download/details.aspx?id=8279 Both are about Windows SDK 7.1. The latter is a download link; the former says what to do if you have VS 2010 installed. Can I use the SDK 8.0 or 8.1 to build Python extensions for Python 3.3 and 3.4? It took me several hours to have a working platform to build my Python extensions for Python 2.7, 3.3 and 3.4, in 32 and 64 bits with automated scripts to run all commands. And now it doesn't work anymore :-( Victor 2015-01-13 23:46 GMT+01:00 M.-A. Lemburg m...@egenix.com: On 13.01.2015 23:42, Brian Curtin wrote: On Tue, Jan 13, 2015 at 4:36 PM, Victor Stinner victor.stin...@gmail.com wrote: 2015-01-13 23:18 GMT+01:00 Steve Dower steve.do...@microsoft.com: Technically, Python 3.5 requires Visual Studio 2015 For me, it's *very* difficult to find how to install Visual Studio. There are many different websites and web pages which mention Visual Studio with a lot of versions and flavors (Express, Community, Ultimate, etc.). Visual Studio 2015 was not released yet :-/ My VM has only a disk of 40 GB. Only 12 GB are free. I already have VS 2008 Express and VS 2010 Express installed. I understood that Ultimate includes a *lot* of things, not only a C compiler. I found a free Visual Studio which is in fact Visual Studio 2013 Community and I read that it's not free. I sent an email to Brian Curtin to ask to renew my MSDN account. He didn't reply yet. I saw that and will send it on, but it's still going to take some time to process - usually a week or so. In the meantime, the first result searching for Visual Studio 2015 came up with http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx , which seems to give you VS2015. I haven't tried to run it since I'm not on Windows at the moment, but it looks correct. Just a note of caution: for older preview releases of VS the only way to get back to a clean system was to reinstall Windows. I don't know whether this will be different with VS 2015, but if you care for your VM, you should probably create a snapshot before installing VS 2015 preview to make it easy to revert back, e.g. to install the final VS 2015 version. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 13 2015) Python Projects, Coaching and Consulting ... http://www.egenix.com/ mxODBC Plone/Zope Database Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ 2015-01-09: Released eGenix pyOpenSSL 0.13.7 ... http://egenix.com/go68 2015-01-20: Python Meeting Duesseldorf ...http://egenix.com/go69 : Try our mxODBC.Connect Python Database Interface for free ! :: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/rymg19%40gmail.com -- Ryan If anybody ever asks me why I prefer C++ to C, my answer will be simple: It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated. Personal reality distortion fields are immune to contradictory evidence. - srean Check out my website: http://kirbyfan64.github.io/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
2015-01-15 22:39 GMT+01:00 Ryan Gonzalez rym...@gmail.com: http://www.microsoft.com/en-us/download/details.aspx?id=8279 Microsoft Windows SDK for Windows 7 and .NET Framework 4 Are you sure that it is SDK 7.1, and not 7.0? -- The SDK 7.0 works for Python 2.7 which is compiled with Visual Studio 2008. I used the SDK 7.1 for Python 3.3 and 3.4 which are compiled with Visual Studio 2010. It looks likt SDK 8 is more for Visual Studio 2012. If you use the wrong SDK, you will depend on a MSVCRxxx.dll which is not provided by Python x.x (ex: MSVCR100.dll for SDK 7.1/Python 3.3 3.4). Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On Thu, Jan 15, 2015 at 3:30 PM, Victor Stinner victor.stin...@gmail.com wrote: Hi, I installed the SP1 for Visual Studio 2010, and it looks like that it broke my Windows SDK 7.1 (setenv was missing, cl.exe was also missing). I uninstalled the SDK 7.1, and then I saw that a patch is required to use Windows SDK 7.1 with Visual Studio 2010 SP1. Ah. Too late. Doing a 'repair' on VS2010 might get the SDK back for you; I'm not sure. I believe this link should be what's needed to fix the SDK after installing VS2010SP1: http://www.microsoft.com/en-us/download/details.aspx?id=4422 I don't understand the link between the SDK and Visual Studio. There are not separated directories? If I'm not mistaken, Visual Studio uses the SDK for all of its building and will install its preferred SDK as a dependency. It can use other SDKs as well, though. And now I cannot find Windows SDK 7.1 anymore. It looks like it disappeared from microsoft.com. The SDK 7.1 was released in 2010, so it's now quite old, but it worked well! Web installer: http://www.microsoft.com/en-us/download/details.aspx?id=8279 ISOs: http://www.microsoft.com/en-us/download/details.aspx?id=8442 Extension building in general is still a mess on Windows, I hope the links above are enough to get you going again! -- Zach ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
Victor Stinner wrote: 2015-01-15 22:39 GMT+01:00 Ryan Gonzalez rym...@gmail.com: http://www.microsoft.com/en-us/download/details.aspx?id=8279 Microsoft Windows SDK for Windows 7 and .NET Framework 4 Are you sure that it is SDK 7.1, and not 7.0? The naming is horrible, and the bugs between VS and the SDK are also horrible. I'm sorry. SDK 7.0 == Windows SDK for Windows 7 and .NET Framework 3.5 SDK 7.1 == Windows SDK for Windows 7 and .NET Framework 4 So this is the correct link for building Python 3.3 and 3.4. It's also the one you want to keep building the latest code with the old compiler. -- The SDK 7.0 works for Python 2.7 which is compiled with Visual Studio 2008. I used the SDK 7.1 for Python 3.3 and 3.4 which are compiled with Visual Studio 2010. It looks likt SDK 8 is more for Visual Studio 2012. If you use the wrong SDK, you will depend on a MSVCRxxx.dll which is not provided by Python x.x (ex: MSVCR100.dll for SDK 7.1/Python 3.3 3.4). This information is all entirely correct. Worse, if you depend on the wrong runtime version, you'll get unexpected crashes and other errors. Cheers, Steve Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
If you expand the Details section, it says the version is 7.1. On Thu, Jan 15, 2015 at 3:58 PM, Victor Stinner victor.stin...@gmail.com wrote: 2015-01-15 22:39 GMT+01:00 Ryan Gonzalez rym...@gmail.com: http://www.microsoft.com/en-us/download/details.aspx?id=8279 Microsoft Windows SDK for Windows 7 and .NET Framework 4 Are you sure that it is SDK 7.1, and not 7.0? -- The SDK 7.0 works for Python 2.7 which is compiled with Visual Studio 2008. I used the SDK 7.1 for Python 3.3 and 3.4 which are compiled with Visual Studio 2010. It looks likt SDK 8 is more for Visual Studio 2012. If you use the wrong SDK, you will depend on a MSVCRxxx.dll which is not provided by Python x.x (ex: MSVCR100.dll for SDK 7.1/Python 3.3 3.4). Victor -- Ryan If anybody ever asks me why I prefer C++ to C, my answer will be simple: It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated. Personal reality distortion fields are immune to contradictory evidence. - srean Check out my website: http://kirbyfan64.github.io/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
Oh by the way, the tool that I wrote to build wheel packages on Windows is here: https://code.google.com/p/tulip/source/browse/release.py It was too annoying to have to open 6 times the Windows SDK shell, and type each time between 2 and 4 commands. release.py help: -- Usage: release.py [options] command Options: -h, --helpshow this help message and exit -v, --verbose verbose -t TAG, --tag=TAG Mercurial tag or revision, required to release -p PYTHON, --python=PYTHON Only build/test one specific Python version, ex: 2.7:32 -C, --no-compile Don't compile the module, this options implies --running -r, --running Only use the running Python version --ignore Ignore local changes Commands: - build: build asyncio in place, imply --running - test: run tests - test_wheel: test building wheel packages - release: run tests and publish wheel packages, require the --tag option - clean: cleanup the project -- I wrote the tool for Tulip but it should be easy to make it more generic. Victor 2015-01-15 23:34 GMT+01:00 Paul Moore p.f.mo...@gmail.com: On 15 January 2015 at 22:26, Zachary Ware zachary.ware+py...@gmail.com wrote: Extension building in general is still a mess on Windows, I hope the links above are enough to get you going again! For building extensions, I have a powershell script that, starting with a clean machine, downloads and installs everything needed to build extensions for Python 2.7-3.4 (Python, 32 and 64-bit, SDK compilers and Visual C for Python 2.7, and some support packages). It's available at https://github.com/pfmoore/pybuild It's pretty fragile (largely because the SDK installs are pretty fragile, but also because it doesn't check if things it wants to install are already there), but it's good for setting up a new VM from scratch. It isn't designed for building Python, and I've no idea how well it would work for that. But you might be able to pick out some parts of it that would be useful (if nothing else, it includes direct download URLs for the various components needed). Paul ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On 15 January 2015 at 22:26, Zachary Ware zachary.ware+py...@gmail.com wrote: Extension building in general is still a mess on Windows, I hope the links above are enough to get you going again! For building extensions, I have a powershell script that, starting with a clean machine, downloads and installs everything needed to build extensions for Python 2.7-3.4 (Python, 32 and 64-bit, SDK compilers and Visual C for Python 2.7, and some support packages). It's available at https://github.com/pfmoore/pybuild It's pretty fragile (largely because the SDK installs are pretty fragile, but also because it doesn't check if things it wants to install are already there), but it's good for setting up a new VM from scratch. It isn't designed for building Python, and I've no idea how well it would work for that. But you might be able to pick out some parts of it that would be useful (if nothing else, it includes direct download URLs for the various components needed). Paul ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On 13.01.2015 23:50, Victor Stinner wrote: 2015-01-13 23:46 GMT+01:00 M.-A. Lemburg m...@egenix.com: Just a note of caution: for older preview releases of VS the only way to get back to a clean system was to reinstall Windows. Does it mean that it's not possible to have VS 2008 and VS 2015 installed at the same time? VS 2008 is required to build Python 2.7. Steve already answered this basically. It is well possible to have multiple VS versions installed at the same time. Before compiling you just need to run the right environment setup batch file to prepare everything. I was just referring to *preview* versions of VS. If you use one of those, chances are that you'll have a hard time upgrading to the final version of VS. My recommendation is not to use preview versions on systems that you cannot easily revert to a state before the preview install. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 14 2015) Python Projects, Coaching and Consulting ... http://www.egenix.com/ mxODBC Plone/Zope Database Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ 2015-01-09: Released eGenix pyOpenSSL 0.13.7 ... http://egenix.com/go68 2015-01-20: Python Meeting Duesseldorf ...http://egenix.com/go69 : Try our mxODBC.Connect Python Database Interface for free ! :: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On 13/01/2015 22:04, Victor Stinner wrote: +* Type: PCbuild\win32\python_d.exe PCbuild\prepare_ssl.py externals\openssl-1.0.1j See also http://bugs.python.org/issue23212 Update Windows and OS X installer copies of OpenSSL to 1.0.1k -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
2015-01-13 23:18 GMT+01:00 Steve Dower steve.do...@microsoft.com: Technically, Python 3.5 requires Visual Studio 2015 For me, it's *very* difficult to find how to install Visual Studio. There are many different websites and web pages which mention Visual Studio with a lot of versions and flavors (Express, Community, Ultimate, etc.). Visual Studio 2015 was not released yet :-/ My VM has only a disk of 40 GB. Only 12 GB are free. I already have VS 2008 Express and VS 2010 Express installed. I understood that Ultimate includes a *lot* of things, not only a C compiler. I found a free Visual Studio which is in fact Visual Studio 2013 Community and I read that it's not free. I sent an email to Brian Curtin to ask to renew my MSDN account. He didn't reply yet. Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On Tue, Jan 13, 2015 at 4:36 PM, Victor Stinner victor.stin...@gmail.com wrote: 2015-01-13 23:18 GMT+01:00 Steve Dower steve.do...@microsoft.com: Technically, Python 3.5 requires Visual Studio 2015 For me, it's *very* difficult to find how to install Visual Studio. There are many different websites and web pages which mention Visual Studio with a lot of versions and flavors (Express, Community, Ultimate, etc.). Visual Studio 2015 was not released yet :-/ My VM has only a disk of 40 GB. Only 12 GB are free. I already have VS 2008 Express and VS 2010 Express installed. I understood that Ultimate includes a *lot* of things, not only a C compiler. I found a free Visual Studio which is in fact Visual Studio 2013 Community and I read that it's not free. I sent an email to Brian Curtin to ask to renew my MSDN account. He didn't reply yet. I saw that and will send it on, but it's still going to take some time to process - usually a week or so. In the meantime, the first result searching for Visual Studio 2015 came up with http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx, which seems to give you VS2015. I haven't tried to run it since I'm not on Windows at the moment, but it looks correct. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
2015-01-13 23:42 GMT+01:00 Brian Curtin br...@python.org: In the meantime, the first result searching for Visual Studio 2015 came up with http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx, which seems to give you VS2015. I haven't tried to run it since I'm not on Windows at the moment, but it looks correct. I only see the Ultime flavor which contains a lot of things that I don't need. It says that it requires 20 GB of disk, I don't have enough free disk space (12 GB or something like that). Is there a lighter flavor available? If VS 2010 still works, I prefer to keep it right now. Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On 13.01.2015 23:42, Brian Curtin wrote: On Tue, Jan 13, 2015 at 4:36 PM, Victor Stinner victor.stin...@gmail.com wrote: 2015-01-13 23:18 GMT+01:00 Steve Dower steve.do...@microsoft.com: Technically, Python 3.5 requires Visual Studio 2015 For me, it's *very* difficult to find how to install Visual Studio. There are many different websites and web pages which mention Visual Studio with a lot of versions and flavors (Express, Community, Ultimate, etc.). Visual Studio 2015 was not released yet :-/ My VM has only a disk of 40 GB. Only 12 GB are free. I already have VS 2008 Express and VS 2010 Express installed. I understood that Ultimate includes a *lot* of things, not only a C compiler. I found a free Visual Studio which is in fact Visual Studio 2013 Community and I read that it's not free. I sent an email to Brian Curtin to ask to renew my MSDN account. He didn't reply yet. I saw that and will send it on, but it's still going to take some time to process - usually a week or so. In the meantime, the first result searching for Visual Studio 2015 came up with http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx, which seems to give you VS2015. I haven't tried to run it since I'm not on Windows at the moment, but it looks correct. Just a note of caution: for older preview releases of VS the only way to get back to a clean system was to reinstall Windows. I don't know whether this will be different with VS 2015, but if you care for your VM, you should probably create a snapshot before installing VS 2015 preview to make it easy to revert back, e.g. to install the final VS 2015 version. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 13 2015) Python Projects, Coaching and Consulting ... http://www.egenix.com/ mxODBC Plone/Zope Database Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ 2015-01-09: Released eGenix pyOpenSSL 0.13.7 ... http://egenix.com/go68 2015-01-20: Python Meeting Duesseldorf ...http://egenix.com/go69 : Try our mxODBC.Connect Python Database Interface for free ! :: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
2015-01-13 23:46 GMT+01:00 M.-A. Lemburg m...@egenix.com: Just a note of caution: for older preview releases of VS the only way to get back to a clean system was to reinstall Windows. Does it mean that it's not possible to have VS 2008 and VS 2015 installed at the same time? VS 2008 is required to build Python 2.7. Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
Victor Stinner wrote: 2015-01-13 23:18 GMT+01:00 Steve Dower steve.do...@microsoft.com: Technically, Python 3.5 requires Visual Studio 2015 For me, it's *very* difficult to find how to install Visual Studio. There are many different websites and web pages which mention Visual Studio with a lot of versions and flavors (Express, Community, Ultimate, etc.). http://www.visualstudio.com/ is the only website to look at, and it may redirect you to somewhere on microsoft.com. Anywhere else is sketchy. Visual Studio 2015 was not released yet :-/ Yes, the timing is a little bit awkward, which is why I'm keen to make sure VS 2010 keeps working for now. My VM has only a disk of 40 GB. Only 12 GB are free. I already have VS 2008 Express and VS 2010 Express installed. I understood that Ultimate includes a *lot* of things, not only a C compiler. I appreciate this, and I'm constantly trying to get a version released that is just the compiler and nothing else. Unfortunately, I'm one lone low-level engineer, and releasing a different package like this is a high-level decision that I have no control over. Because VS 2015 is in preview, the only available version is Ultimate, but when the RC is released I'd expect to be able to choose the more specific versions. I found a free Visual Studio which is in fact Visual Studio 2013 Community and I read that it's not free. Community Edition is certainly free (as in $0 - if you want to get ideological about free then you'll make it very hard for yourself to use any software produced by a business). The only requirement is that you log in with a Microsoft (a.k.a Live.com/Hotmail) account. It's a dumb requirement, but again, this is a high-level decision that I get no say in. I sent an email to Brian Curtin to ask to renew my MSDN account. He didn't reply yet. Give him a chance, I'm sure he's just busy :) Victor Cheers, Steve ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
2015-01-13 23:15 GMT+01:00 Zachary Ware zachary.ware+py...@gmail.com: The first line of the section you linked to is The readme included in the solution has more details, especially on what additional software is required to build which parts of Python., and 'readme' is a link to the readme on h.p.o. :) Ok, I didn't read the full section. But we should show the readme link in bold or maybe in a seealso section. Right now, it's easy to miss this important link. Quick Start Guide - 1. Install Microsoft Visual Studio 2015, any edition. 2. Install Subversion, and make sure 'svn.exe' is on your PATH. 3. Run build.bat -e to build Python in 32-bit Release configuration. Oh wow, it's much simpler that my procedure :-) It worked for me, in a few minutes I got a working import ssl. Thanks. I'm now able to test my asyncio patch on Windows ;-) http://bugs.python.org/issue22560 (With this patch, it will be possible to use SSL with the proactor (IOCP) event loop which is more efficient and supports more defaults than the default selector event loop.) Note: build.bat is in the PCbuild directory, and the command doesn't need to be executed in the Visual Studio/Windows SDK shell. It works in the classical cmd.exe shell. Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On Tue, Jan 13, 2015 at 4:04 PM, Victor Stinner victor.stin...@gmail.com wrote: Hi, To compile Python on Windows, there are a few information in the Developer Guide: https://docs.python.org/devguide/setup.html#windows-compiling Python 3.5 now requires Visual Studio 2010 *SP1*, or newer Visual Studio: http://bugs.python.org/issue22919#msg233637 I found PCbuild\readme.txt which is not mentionned in the devguide :-/ https://hg.python.org/cpython/file/56f717235c45/PCbuild/readme.txt (at least not on the Windows section of the setup page) The first line of the section you linked to is The readme included in the solution has more details, especially on what additional software is required to build which parts of Python., and 'readme' is a link to the readme on h.p.o. :) I found some clues to build OpenSSL to be able to build the Python ssl module, but I still have issues. Is there a more complete documentation? The readme *should* be fairly comprehensive as I rewrote it last year, but it may still be lacking since I wrote it after doing regular builds for a year or two. In particular, the Quick Start guide at the very beginning of the readme should be enough to get you going. Quick Start Guide - 1. Install Microsoft Visual Studio 2015, any edition. 2. Install Subversion, and make sure 'svn.exe' is on your PATH. 3. Run build.bat -e to build Python in 32-bit Release configuration. 4. (Optional, but recommended) Run the test suite with rt.bat -q. That should be enough to build Python, OpenSSL, Tcl/Tk/Tix, and all other external projects. One thing that might be a gotcha there, if you're using a Command Prompt window that you opened before installing SVN, you'll need to either adjust PATH manually or open a new Command Prompt to get the PATH changes. I found how to install svn.exe, perl.exe and nasm.exe, but not how to install nmake.exe. I don't know the command to build OpenSSL. Perl is not necessary if you're using sources from svn.python.org (which build.bat -e will do). You also no longer need to install NASM. nmake.exe is part of Visual Studio (or the Windows SDK, whichever). I don't care of building OpenSSL, my goal is only to build the Python ssl module. Is there a way to install a development version of OpenSSL (.lib files if I remember correctly) from an installer/binary? My draft notes: +Compile CPython on Windows +== + +To build the Python ssl extension: + +Need: + +* Visual Studio 2010 SP1 or newer +* CPython source code (default branch: 3.5) +* perl binary: ActivePerl +* svn binary, ex: SilkSVN +* nasm and nmake binaries: compile NASM (install the binary doesn't install nmake) + +Read PCbuild/readme.txt. + +* Build Python (in debug mode) +* Type: PCbuild\get_externals.bat +* Type: PCbuild\win32\python_d.exe PCbuild\prepare_ssl.py externals\openssl-1.0.1j You don't need to use prepare_ssl.py if you use get_externals.bat. The 'ssl' section of the readme should cover that (if it can be clarified, please point out the problems to me!). -- Zach ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On 13.01.2015 23:04, Victor Stinner wrote: Hi, To compile Python on Windows, there are a few information in the Developer Guide: https://docs.python.org/devguide/setup.html#windows-compiling Python 3.5 now requires Visual Studio 2010 *SP1*, or newer Visual Studio: http://bugs.python.org/issue22919#msg233637 I found PCbuild\readme.txt which is not mentionned in the devguide :-/ https://hg.python.org/cpython/file/56f717235c45/PCbuild/readme.txt (at least not on the Windows section of the setup page) I found some clues to build OpenSSL to be able to build the Python ssl module, but I still have issues. Is there a more complete documentation? I found how to install svn.exe, perl.exe and nasm.exe, but not how to install nmake.exe. I don't know the command to build OpenSSL. I don't care of building OpenSSL, my goal is only to build the Python ssl module. Is there a way to install a development version of OpenSSL (.lib files if I remember correctly) from an installer/binary? If you just need the compiled OpenSSL DLLs and .libs, you can use the ones we ship with the source package of egenix-pyopenssl: http://www.egenix.com/products/python/pyOpenSSL/#Download The files are in openssl-win32 / openssl-win64. Those dirs also have batch files which we use to build the OpenSSL libs on Windows. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 13 2015) Python Projects, Coaching and Consulting ... http://www.egenix.com/ mxODBC Plone/Zope Database Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ 2015-01-09: Released eGenix pyOpenSSL 0.13.7 ... http://egenix.com/go68 2015-01-20: Python Meeting Duesseldorf ...http://egenix.com/go69 : Try our mxODBC.Connect Python Database Interface for free ! :: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On Tue, Jan 13, 2015 at 4:04 PM, Victor Stinner victor.stin...@gmail.com wrote: Hi, To compile Python on Windows, there are a few information in the Developer Guide: https://docs.python.org/devguide/setup.html#windows-compiling Python 3.5 now requires Visual Studio 2010 *SP1*, or newer Visual Studio: http://bugs.python.org/issue22919#msg233637 I found PCbuild\readme.txt which is not mentionned in the devguide :-/ https://hg.python.org/cpython/file/56f717235c45/PCbuild/readme.txt (at least not on the Windows section of the setup page) I found some clues to build OpenSSL to be able to build the Python ssl module, but I still have issues. Is there a more complete documentation? I found how to install svn.exe, perl.exe and nasm.exe, but not how to install nmake.exe. I don't know the command to build OpenSSL. For nmake, are you running this in a regular Command Prompt or in the Visual Studio Command Prompt? The latter sets the right environment to point you to some tools that VS installs, including nmake. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
Victor Stinner wrote: To compile Python on Windows, there are a few information in the Developer Guide: https://docs.python.org/devguide/setup.html#windows-compiling I'm sorry, I've been slack and haven't updated this guide with the new changes. That said, there aren't that many changes to what is already in the guide - mostly new information that I'd like to add. I'll try and get something written up this week. Python 3.5 now requires Visual Studio 2010 *SP1*, or newer Visual Studio: http://bugs.python.org/issue22919#msg233637 Technically, Python 3.5 requires Visual Studio 2015, as the decision was made to move to the newer compiler for this release (and make whatever schedule changes were necessary to ensure everything will be available - it was on python-dev, though I don't have links handy). It will still open and build with Visual Studio 2010 SP1 or later, however, buildbots should move to VS 2015 as they can, since that will be the official toolset. (I'm not pushing too hard until 2015 RC is released, since that's when Microsoft start supporting upgrades to newer versions. We do have one buildbot that's already using VS 2015 Preview though.) I found PCbuild\readme.txt which is not mentionned in the devguide :-/ https://hg.python.org/cpython/file/56f717235c45/PCbuild/readme.txt (at least not on the Windows section of the setup page) That should help, since I've updated that file. Though it's a little ahead of its time still, so a lot of the instructions do not yet have to be followed strictly, and I consider being able to build with VS 2010 SP1 a feature that we want to keep supporting for now while we transition. I found some clues to build OpenSSL to be able to build the Python ssl module, but I still have issues. Is there a more complete documentation? I found how to install svn.exe, perl.exe and nasm.exe, but not how to install nmake.exe. I don't know the command to build OpenSSL. You don't require perl, you don't have to install nasm or build OpenSSL. Calling PCBuild/get_externals.bat will get nasm and the OpenSSL sources, and PCBuild/build.bat will rebuild OpenSSL as necessary. nmake is part of Visual C++, so it should be available once you have your path configured (PCBuild/env.bat). So a complete guide to check out and build Python on Windows should be: 1. Install SVN and put it on your path 2. Run PCBuild\get_externals.bat (this is the only step that requires SVN) 3. Install Visual Studio 2010 SP1 or later 4. Open PCBuild\pcbuild.sln in Visual Studio *or* run PCBuild\build.bat from the command line. I don't care of building OpenSSL, my goal is only to build the Python ssl module. Is there a way to install a development version of OpenSSL (.lib files if I remember correctly) from an installer/binary? If you can find ssleay.lib and libeay.lib somewhere, they'll probably work. If not, those projects are in PCBuild and will be built automatically (if necessary) when you build _ssl.vcxproj or _hashlib.vcxproj. Cheers, Steve My draft notes: +Compile CPython on Windows +== + +To build the Python ssl extension: + +Need: + +* Visual Studio 2010 SP1 or newer +* CPython source code (default branch: 3.5) +* perl binary: ActivePerl +* svn binary, ex: SilkSVN +* nasm and nmake binaries: compile NASM (install the binary doesn't install nmake) + +Read PCbuild/readme.txt. + +* Build Python (in debug mode) +* Type: PCbuild\get_externals.bat +* Type: PCbuild\win32\python_d.exe PCbuild\prepare_ssl.py externals\openssl-1.0.1j Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
On Tue, Jan 13, 2015 at 4:15 PM, Zachary Ware zachary.ware+py...@gmail.com wrote: Quick Start Guide - 1. Install Microsoft Visual Studio 2015, any edition. Note that this isn't precisely true; any VS 2010 SP1 or newer *should* work, as you already know :). This just says 2015 because that's the 'official' version to use. -- Zach ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Compile Python on Windows (OpenSSL)
Victor Stinner wrote: 2015-01-13 23:46 GMT+01:00 M.-A. Lemburg m...@egenix.com: Just a note of caution: for older preview releases of VS the only way to get back to a clean system was to reinstall Windows. Does it mean that it's not possible to have VS 2008 and VS 2015 installed at the same time? It's possible, and that configuration will be fine. Until VS 2015 RC is released, there's no guarantee that it will uninstall or upgrade cleanly. The testing so far looks like it'll be fine, but there's no guarantee. There's also a chance that it will interfere with VS 2013, but any earlier versions will be fine. Cheers, Steve VS 2008 is required to build Python 2.7. Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com