Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c54f4d25
Commit
c54f4d25
authored
Dec 05, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation and build_tkinter.py script
parent
eeca5336
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
21 deletions
+28
-21
PCbuild9/build_tkinter.py
PCbuild9/build_tkinter.py
+6
-8
PCbuild9/readme.txt
PCbuild9/readme.txt
+22
-13
No files found.
PCbuild9/build_tkinter.py
View file @
c54f4d25
...
...
@@ -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.1
2"
#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
():
...
...
PCbuild9/readme.txt
View file @
c54f4d25
...
...
@@ -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.1
2
.
Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.1
6
.
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.1
2
svn export http://svn.python.org/projects/external/tk8.4.1
2
svn export http://svn.python.org/projects/external/tcl8.4.1
6
svn export http://svn.python.org/projects/external/tk8.4.1
6
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.1
2
\win
cd dist\tcl8.4.1
6
\win
nmake -f makefile.vc
nmake -f makefile.vc INSTALLDIR=..\..\tcltk install
...
...
@@ -103,9 +112,9 @@ _tkinter
Build Tk
--------
cd dist\tk8.4.1
2
\win
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
2
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
2
INSTALLDIR=..\..\tcltk install
cd dist\tk8.4.1
6
\win
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
6
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
6
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.1
2
test
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
6
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 python
9
.mak
nmake -f python
9
.mak install
bz2
Python wrapper for the libbz2 compression library. Homepage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment