The PCbuild9.zip include solution and project files upgraded from
PCbuild/PCbuild8 with some modification.
To build with such a configuration, the following libraries are needed.
wget http://prdownloads.sourceforge.net/tcl/tcl8.4.16-src.tar.gz
wget http://prdownloads.sourceforge.net/tcl/tk8.4.16-src.tar.gz
wget http://prdownloads.sourceforge.net/tix/Tix8.4.2-src.tar.gz
wget http://download.oracle.com/berkeley-db/db-4.6.21.tar.gz
wget http://www.bzip.org/1.0.4/bzip2-1.0.4.tar.gz
wget http://www.openssl.org/source/openssl-0.9.8g.tar.gz
wget http://www.sqlite.org/sqlite-source-3_5_2.zip
If your PCBuild is .......\dist\src\PCbuild\,
1. unpack these libraries into new subdirectories of dist\.
2. unpack PCbuild9.zip into dist\src\.
3. rename tix-8.4.2 to tix8.4.2, and apply tix8.4.2.patch in dist
directory.
4. apply socketmodule.c.patch in dist\src directory.
Several tools are needed too.
1. VC Express 2008 beta2
wget http://go.microsoft.com/fwlink/?linkid=95599
2. Windows SDK
Microsoft ? Windows Server? 2003 R2 Platform SDK
http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-
4969-ACE8-E4C0C0716ADB&displaylang=en
OR
Microsoft? Windows? Software Development Kit (SDK) for Windows Server
code name “Longhorn” and .NET Framework 3.5
http://www.microsoft.com/downloads/details.aspx?FamilyID=58726aca-8d84-
4683-8959-be0038da7084&displaylang=en
3. mingw + msys(to build sqlite3)
http://sourceforge.net/projects/mingw/
these are necessary:
gcc-g++-3.4.5-20060117-1.tar.gz
gcc-core-3.4.5-20060117-1.tar.gz
mingw32-make-3.81-2.tar.gz
binutils-2.17.50-20060824-1.tar.gz
MSYS-1.0.10.exe
4. ml.exe
I extract it from VC Express 2005. ml.exe is included in MASM 8.0, but
MASM8.0 can not be installed with VC express 2008, it just can be
installed with VC Express 2005.
you can follow dist\src\PCbuild9\README.txt to build libraries and
python, the order I recommend is :
0. Use "Start -> All Programs -> Visual C++ 9.0 Express Edition
-> Visual Studio Tools ->Visual Studio 2008 Beta 2 Command
Prompt"
to get a shell window with the correct environment settings
1. tcl8.4.16
cd dist\tcl8.4.16\win
nmake -f makefile.vc
nmake -f makefile.vc INSTALLDIR=..\..\tcltk install
2. tk8.4.16
cd dist\tk8.4.16\win
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 INSTALLDIR=..\..\tcltk
install
3. tix8.4.2
cd dist\tix8.4.2\win
set MSVCDIR = %VCINSTALLDIR%
nmake -f python.mak
nmake -f python.mak install
4. db-4.6.21
Open in VC Express, the .dsw need to be converted to .sln, just compile
db_static in both Release x86 and Debug x86.
5. sqlite3
I recommend you to have a try on mingw + msys, it's very easy, just
need to excute several command:
./configuration
make
make dll
lib /DEF:sqlite3.def /MACHINE:IX86
If you are afraid of mingw+msys, You can get sqlite3.dll and sqlite3.h
by
svn export http://svn.python.org/projects/external/sqlite-source-
3.3.4
but by this way, you need to change options in dist\src\PCbuild9
\pyproject.vsprops.
6. python2.6
Open dist\src\PCbuild9\pcbuild.sln in VC Express, compile all project
in both Release win32 and Debug win32.
After you build, run build.bat to copy .pyd etc to PCbuild9:
build.bat -c Release -p win32
build.bat -c Debug -p win32
7. openssl-0.9.8g
Invoke build_ssl.pyp in dist\src\PCbuild9\. you need to copy .pyd
and .lib from x86-temp-debug and x86-temp-release.
I am trying to have a test on the *fresh* built python26, I also plan
to patch msi.py so that msi.py can make a productive installer, any
suggest are welcome.
|