summaryrefslogtreecommitdiffstats
path: root/PCbuild/readme.txt
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-14 23:24:40 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-14 23:24:40 (GMT)
commit077736b96b0e323841d76672dc109c2caba976a4 (patch)
tree6550893c5beac258b7d8bd427dfbd7426071d9e5 /PCbuild/readme.txt
parent9a6b8d8cf89236f92282ce7526d2d913d2afe643 (diff)
downloadcpython-077736b96b0e323841d76672dc109c2caba976a4.zip
cpython-077736b96b0e323841d76672dc109c2caba976a4.tar.gz
cpython-077736b96b0e323841d76672dc109c2caba976a4.tar.bz2
Windows changes to move from Tcl/Tk 8.3.2 to 8.4.1. I tested this by
running IDLE, and since I'm not a Tcl Guy I'm not sure what else to do. Up to you! See XXX comments in PCbuild\readme.txt for cautions. Also repaired typos in the new bz2-for-Windows instructions.
Diffstat (limited to 'PCbuild/readme.txt')
-rw-r--r--PCbuild/readme.txt60
1 files changed, 53 insertions, 7 deletions
diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt
index 5073a41..5c8fdf6 100644
--- a/PCbuild/readme.txt
+++ b/PCbuild/readme.txt
@@ -71,10 +71,53 @@ directory; for example, if your PCbuild is .......\dist\src\PCbuild\,
unpack into new subdirectories of dist\.
_tkinter
- Python wrapper for the Tk windowing system. Requires tcl832.exe from
- http://dev.scriptics.com/software/tcltk/downloadnow83.html
- Run the installer, forcing installation into dist\Tcl.
- Be sure to install everything, including the Tcl/Tk header files.
+ Python wrapper for the Tk windowing system. Requires building
+ Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.1:
+
+ Get source
+ ----------
+ Go to
+ http://prdownloads.sourceforge.net/tcl/
+ and download
+ tcl841-src.zip
+ tk841-src.zip
+ Unzip into
+ dist\tcl8.4.1\
+ dist\tk\8.4.1\
+ respectively.
+
+ Build Tcl first (done here w/ MSVC 6 on Win2K)
+ ----------------------------------------------
+ cd dist\tcl8.4.1\win
+ run vcvars32.bat [necessary even on Win2K]
+ nmake -f makefile.vc
+ nmake -f makefile.vc INSTALLDIR=..\..\tcl84 install
+
+ XXX Should we compile with OPTS=threads?
+
+ XXX Some tests failed in "nmake -f makefile.vc test".
+
+ XXX Should rename destination directory to something more generic
+ XXX then tcl84. But unless I can backport 8.3.4 to the 2.2 line
+ XXX too, I've got to be able to build using more than oneX Tcl/Tk
+ XXX release, and that effectively reserves the "tcl" directory name
+ XXX for the duration. Nothing that requires thought is going to
+ XXX work when it comes to release crunch times.
+
+
+ Build Tk
+ -------
+ cd dist\tk8.4.1\win
+ nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
+ nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1 INSTALLDIR=..\..\tcl84 install
+
+ XXX Should we compile with OPTS=threads?
+
+ XXX Some tests failed in "nmake -f makefile.vc test".
+
+ XXX Our installer copies a lot of stuff out of the Tcl/Tk install
+ XXX directory. Is all of that really needed for Python use of Tcl/Tk?
+
zlib
Python wrapper for the zlib compression library. Get the source code
@@ -92,13 +135,15 @@ bz2
Python wrapper for the libbz2 compression library. Homepage
http://sources.redhat.com/bzip2/
Download the source tarball, bzip2-1.0.2.tar.gz.
- Unpack into dist\bzip2-1.0.2. WARNING: If you using WinZip, you
+ Unpack into dist\bzip2-1.0.2. WARNING: If you're using WinZip, you
must disable its "TAR file smart CR/LF conversion" feature (under
Options -> Configuration -> Miscellaneous -> Other) for the duration.
+
Don't bother trying to use libbz2.dsp with MSVC. After 10 minutes
of fiddling, I couldn't get it to work. Perhaps it works with
MSVC 5 (I used MSVC 6). It's better to run the by-hand makefile
- anyway, because it runs a helpful test step at the end.
+ anyway, because it runs a helpful test step at the end.
+
cd into dist\bzip2-1.0.2, and run
nmake -f makefile.msc
[Note that if you're running Win9X, you'll need to run vcvars32.bat
@@ -106,11 +151,12 @@ bz2
TODO: make this work like zlib (in particular, MSVC runs the prelink
step in an enviroment that already has the correct envars set up).
]
- The make step should yield any warnings or errors, and should end
+ The make step shouldn't yield any warnings or errors, and should end
by displaying 6 blocks each terminated with
FC: no differences encountered
If FC finds differences, see the warning abou WinZip above (when I
first tried it, sample3.ref failed due to CRLF conversion).
+
All of this managed to build bzip2-1.0.2\libbz2.lib, which the Python
project links in.