Commit c54f4d25 authored by Christian Heimes's avatar Christian Heimes

Updated documentation and build_tkinter.py script

parent eeca5336
...@@ -12,12 +12,10 @@ import shutil ...@@ -12,12 +12,10 @@ import shutil
here = os.path.abspath(os.path.dirname(__file__)) here = os.path.abspath(os.path.dirname(__file__))
par = os.path.pardir par = os.path.pardir
#TCL = "tcl8.4.16" TCL = "tcl8.4.16"
#TIX = "Tix8.4.2" TK = "tk8.4.16"
#TK = "tk8.4.16"
TCL = "tcl8.4.12"
TIX = "Tix8.4.0" TIX = "Tix8.4.0"
TK = "tk8.4.12" #TIX = "Tix8.4.2"
ROOT = os.path.abspath(os.path.join(here, par, par)) ROOT = os.path.abspath(os.path.join(here, par, par))
NMAKE = "nmake /nologo " NMAKE = "nmake /nologo "
...@@ -57,9 +55,9 @@ def build(platform, clean): ...@@ -57,9 +55,9 @@ def build(platform, clean):
if True: if True:
os.chdir(os.path.join(ROOT, TIX, "win")) os.chdir(os.path.join(ROOT, TIX, "win"))
if clean: if clean:
system(NMAKE + "/f makefile.vc clean") system(NMAKE + "/f python9.mak clean")
system(NMAKE + "/f makefile.vc MACHINE=%s" % machine) system(NMAKE + "/f python9.mak MACHINE=%s" % machine)
system(NMAKE + "/f makefile.vc INSTALL_DIR=%s install" % dest) system(NMAKE + "/f python9.mak install")
def main(): def main():
......
...@@ -72,23 +72,32 @@ unpack into new subdirectories of ..\dist\. ...@@ -72,23 +72,32 @@ unpack into new subdirectories of ..\dist\.
_tkinter _tkinter
Python wrapper for the Tk windowing system. Requires building Python wrapper for the Tk windowing system. Requires building
Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.12. Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.16.
NOTE: The 64 build builds must land in tcltk64 instead of tcltk. NOTE: The 64 build builds must land in tcltk64 instead of tcltk.
Get source Get source
---------- ----------
In the dist directory, run In the dist directory, run
svn export http://svn.python.org/projects/external/tcl8.4.12 svn export http://svn.python.org/projects/external/tcl8.4.16
svn export http://svn.python.org/projects/external/tk8.4.12 svn export http://svn.python.org/projects/external/tk8.4.16
svn export http://svn.python.org/projects/external/tix-8.4.0 svn export http://svn.python.org/projects/external/tix-8.4.0
Build Tcl first (done here w/ MSVC 7.1 on Windows XP) Build with build_tkinter.py
---------------------------
The PCbuild9 directory contains a Python script which automates all
steps. Run the script in a Visual Studio 2009 command prompt with
python build_tkinter.py Win32
Use x64 instead of Win32 for the x64 platform.
Build Tcl first
--------------- ---------------
Use "Start -> All Programs -> Microsoft Visual Studio .NET 2003 Use "Start -> All Programs -> Microsoft Visual Studio 2008
-> Visual Studio .NET Tools -> Visual Studio .NET 2003 Command Prompt" -> Visual Studio Tools -> Visual Studio 2008 Command Prompt"
to get a shell window with the correct environment settings to get a shell window with the correct environment settings
cd dist\tcl8.4.12\win cd dist\tcl8.4.16\win
nmake -f makefile.vc nmake -f makefile.vc
nmake -f makefile.vc INSTALLDIR=..\..\tcltk install nmake -f makefile.vc INSTALLDIR=..\..\tcltk install
...@@ -103,9 +112,9 @@ _tkinter ...@@ -103,9 +112,9 @@ _tkinter
Build Tk Build Tk
-------- --------
cd dist\tk8.4.12\win cd dist\tk8.4.16\win
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 INSTALLDIR=..\..\tcltk install nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 INSTALLDIR=..\..\tcltk install
XXX Should we compile with OPTS=threads? XXX Should we compile with OPTS=threads?
...@@ -113,7 +122,7 @@ _tkinter ...@@ -113,7 +122,7 @@ _tkinter
XXX directory. Is all of that really needed for Python use of Tcl/Tk? XXX directory. Is all of that really needed for Python use of Tcl/Tk?
Optional: run tests, via Optional: run tests, via
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 test nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 test
On WinXP Pro, wholly up to date as of 30-Aug-2004: On WinXP Pro, wholly up to date as of 30-Aug-2004:
all.tcl: Total 8420 Passed 6826 Skipped 1581 Failed 13 all.tcl: Total 8420 Passed 6826 Skipped 1581 Failed 13
...@@ -123,8 +132,8 @@ _tkinter ...@@ -123,8 +132,8 @@ _tkinter
Built Tix Built Tix
--------- ---------
cd dist\tix-8.4.0\win cd dist\tix-8.4.0\win
nmake -f python.mak nmake -f python9.mak
nmake -f python.mak install nmake -f python9.mak install
bz2 bz2
Python wrapper for the libbz2 compression library. Homepage Python wrapper for the libbz2 compression library. Homepage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment