Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4c07cd9d
Kaydet (Commit)
4c07cd9d
authored
Ara 05, 2007
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated documentation and build_tkinter.py script
üst
45c088c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
21 deletions
+28
-21
build_tkinter.py
PCbuild9/build_tkinter.py
+6
-8
readme.txt
PCbuild9/readme.txt
+22
-13
No files found.
PCbuild9/build_tkinter.py
Dosyayı görüntüle @
4c07cd9d
...
@@ -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.1
2"
#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
():
...
...
PCbuild9/readme.txt
Dosyayı görüntüle @
4c07cd9d
...
@@ -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.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.
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.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
2
svn export http://svn.python.org/projects/external/tk8.4.1
6
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.1
2
\win
cd dist\tcl8.4.1
6
\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.1
2
\win
cd dist\tk8.4.1
6
\win
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
2
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
6
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
2
INSTALLDIR=..\..\tcltk install
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.1
6
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.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:
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 python
9
.mak
nmake -f python.mak install
nmake -f python
9
.mak install
bz2
bz2
Python wrapper for the libbz2 compression library. Homepage
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