diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-05 19:57:54 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-05 19:57:54 (GMT) |
commit | 4c07cd9d0c18ecf6259f6286ac8ddca50ce074dd (patch) | |
tree | cc209b58bb21fe70aefea589f4ec653bd67c8889 | |
parent | 45c088c2e729812794afc4c046bdeb96af9e8a61 (diff) | |
download | cpython-4c07cd9d0c18ecf6259f6286ac8ddca50ce074dd.zip cpython-4c07cd9d0c18ecf6259f6286ac8ddca50ce074dd.tar.gz cpython-4c07cd9d0c18ecf6259f6286ac8ddca50ce074dd.tar.bz2 |
Updated documentation and build_tkinter.py script
-rw-r--r-- | PCbuild9/build_tkinter.py | 14 | ||||
-rw-r--r-- | PCbuild9/readme.txt | 35 |
2 files changed, 28 insertions, 21 deletions
diff --git a/PCbuild9/build_tkinter.py b/PCbuild9/build_tkinter.py index 5423a3b..d76ea26 100644 --- a/PCbuild9/build_tkinter.py +++ b/PCbuild9/build_tkinter.py @@ -12,12 +12,10 @@ import shutil here = os.path.abspath(os.path.dirname(__file__)) par = os.path.pardir -#TCL = "tcl8.4.16" -#TIX = "Tix8.4.2" -#TK = "tk8.4.16" -TCL = "tcl8.4.12" +TCL = "tcl8.4.16" +TK = "tk8.4.16" TIX = "Tix8.4.0" -TK = "tk8.4.12" +#TIX = "Tix8.4.2" ROOT = os.path.abspath(os.path.join(here, par, par)) NMAKE = "nmake /nologo " @@ -57,9 +55,9 @@ def build(platform, clean): if True: os.chdir(os.path.join(ROOT, TIX, "win")) if clean: - system(NMAKE + "/f makefile.vc clean") - system(NMAKE + "/f makefile.vc MACHINE=%s" % machine) - system(NMAKE + "/f makefile.vc INSTALL_DIR=%s install" % dest) + system(NMAKE + "/f python9.mak clean") + system(NMAKE + "/f python9.mak MACHINE=%s" % machine) + system(NMAKE + "/f python9.mak install") def main(): diff --git a/PCbuild9/readme.txt b/PCbuild9/readme.txt index 668a86b..791edb2 100644 --- a/PCbuild9/readme.txt +++ b/PCbuild9/readme.txt @@ -72,23 +72,32 @@ unpack into new subdirectories of ..\dist\. _tkinter 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. Get source ---------- In the dist directory, run - svn export http://svn.python.org/projects/external/tcl8.4.12 - svn export http://svn.python.org/projects/external/tk8.4.12 + svn export http://svn.python.org/projects/external/tcl8.4.16 + svn export http://svn.python.org/projects/external/tk8.4.16 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 - -> Visual Studio .NET Tools -> Visual Studio .NET 2003 Command Prompt" + Use "Start -> All Programs -> Microsoft Visual Studio 2008 + -> Visual Studio Tools -> Visual Studio 2008 Command Prompt" 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 INSTALLDIR=..\..\tcltk install @@ -103,9 +112,9 @@ _tkinter Build Tk -------- - cd dist\tk8.4.12\win - nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 - nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 INSTALLDIR=..\..\tcltk install + 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 XXX Should we compile with OPTS=threads? @@ -113,7 +122,7 @@ _tkinter XXX directory. Is all of that really needed for Python use of Tcl/Tk? 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: all.tcl: Total 8420 Passed 6826 Skipped 1581 Failed 13 @@ -123,8 +132,8 @@ _tkinter Built Tix --------- cd dist\tix-8.4.0\win - nmake -f python.mak - nmake -f python.mak install + nmake -f python9.mak + nmake -f python9.mak install bz2 Python wrapper for the libbz2 compression library. Homepage |