MSVC2013

polyvertex at gmail.com polyvertex at gmail.com
Sun Mar 8 13:57:45 EDT 2015


On Saturday, March 7, 2015 at 5:36:07 PM UTC+1, Mark Lawrence wrote:
> On 07/03/2015 15:55, polyvertex at gmail.com wrote:
> > Out of curiosity, is there any plan to use a more recent version of Visual Studio (i.e.: 2013) to compile the official Python3 distribution for Windows?
> > Is it in discussion? Maybe waiting for the 2015 version?
> >
> > I'm working on a C++ software that embeds Python3, currently compiled with MSVC2010 and would like to upgrade to MSVC2013, but it appears that, while being feasible, Python3 won't compile out of the box with that configuration. I would like to avoid that hassle if possible...
> >
> > Cheers,
> >
> 
> I'm building Python 3.5 every day with 2013 no problems at all, thanks 
> mainly to the work on the build system by Zach Ware and Steve Dower.  If 
> 2015 is stable that will be used for 3.5 else we'll stick with 2013.
> 
> -- 
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
> 
> Mark Lawrence

For the record, I successfully compiled v3.5.0a1 (the latest 3.5 candidate as of today) with a fresh install of msvc2013. I ran the PCbuild/get_externals.bat script manually then opened the pcbuild.sln to launch a "Release/x64" build.

Note that I had to launch the global build twice since the first one failed due to <tcl.h> header not found during _tkinter build. Re-launching the global build without modifying any setting/property just did the job flawlessly.

As a quick test, I copied the built binaries (python.exe, .dll and .pyd files) in a new directory, as well as the content of the Lib folder. Then I started an interpreter session and typed some random imports. It all worked like a charm.

Thank you for your answers.



More information about the Python-list mailing list