[issue17846] Building Python on Windows - Supplementary info

michael kearney report at bugs.python.org
Tue Apr 1 21:56:48 CEST 2014


michael kearney added the comment:

Observation:
    Tools\buildbot\build.bat solves all the problems I was having.

That is to say, a single command exists to build python on 
windows w/o problems. It has worked since at least since python 3.3.1, which I think preceded my original submission. 

So this has existed all this time, but has not been suggested 
as the solution it seems to be. What's wrong with it? Is it 
about to be deprecated perhaps? The DevGuide recommends external.bat
in the same directory. build.bat calls external.bat and does more. 


Detail:
 If I
     1. place the unzipped downloaded file folder isolated within another folder so that external projects can be built adjacent to python.
     2. make certain that svn,nasm,VC++, are in my path. 
     3. cd to the python root
     4. execute the command : Tools\buildbot\build.bat
Then
     python_d.exe is created in the PCbuild folder.

This is true for python 3.3.1, 3.3.2, 3.3.4, 3.4.0, and the current development version. I have built all since yesterday. I skipped 3.3.3 only because I didn't have the source downloaded 

OK, I lied a little.
     1. The 3.3.1 release python.org areas had a corrupt openSSL rev d, I think. I modified my local external.bat to get a later version to solve that problem.
     2. Other releases build debug tcltk release libs when debug libs are needed, and vice versa. I made copies of whatever existed and renamed the copy to whatever was required.
     
But this is nothing compared what I was going through before.       

I personally like to have python.exe around also. To create python.exe, I only now open pcbuild.sln to start VC++,  chose the release configuration, and hit F7. I have learned that it is best to run build.bat first before using pcbuild.sln with the VC++ IDE to build anything.

It currently does not work for AMD64 but I maguessing that ti would be a good model to follow.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17846>
_______________________________________


More information about the Python-bugs-list mailing list