1111here = os .path .abspath (os .path .dirname (__file__ ))
1212par = os .path .pardir
1313
14- if 1 :
15- TCL = "tcl8.4.16"
16- TK = "tk8.4.16"
17- TIX = "tix-8.4.0"
18- else :
19- TCL = "tcl8.5b3"
20- TK = "tcl8.5b3"
21- TIX = "Tix8.4.2"
14+ TCL = "tcl8.5.2"
15+ TK = "tk8.5.2"
16+ TIX = "tix-8.4.0.x"
2217
2318ROOT = os .path .abspath (os .path .join (here , par , par ))
2419# Windows 2000 compatibility: WINVER 0x0500
@@ -38,9 +33,9 @@ def build(platform, clean):
3833 if platform == "Win32" :
3934 dest = os .path .join (ROOT , "tcltk" )
4035 machine = "X86"
41- elif platform == "x64 " :
36+ elif platform == "AMD64 " :
4237 dest = os .path .join (ROOT , "tcltk64" )
43- machine = "X64 "
38+ machine = "AMD64 "
4439 else :
4540 raise ValueError (platform )
4641
@@ -50,29 +45,29 @@ def build(platform, clean):
5045 os .chdir (os .path .join (tcldir , "win" ))
5146 if clean :
5247 nmake ("makefile.vc" , "clean" )
53- nmake ("makefile.vc" )
54- nmake ("makefile.vc" , "install" , INSTALLDIR = dest )
48+ nmake ("makefile.vc" , MACHINE = machine )
49+ nmake ("makefile.vc" , "install" , INSTALLDIR = dest , MACHINE = machine )
5550
5651 # TK
5752 if 1 :
5853 os .chdir (os .path .join (ROOT , TK , "win" ))
5954 if clean :
6055 nmake ("makefile.vc" , "clean" , TCLDIR = tcldir )
61- nmake ("makefile.vc" , TCLDIR = tcldir )
62- nmake ("makefile.vc" , "install" , TCLDIR = tcldir , INSTALLDIR = dest )
56+ nmake ("makefile.vc" , TCLDIR = tcldir , MACHINE = machine )
57+ nmake ("makefile.vc" , "install" , TCLDIR = tcldir , INSTALLDIR = dest , MACHINE = machine )
6358
6459 # TIX
6560 if 1 :
6661 # python9.mak is available at http://svn.python.org
6762 os .chdir (os .path .join (ROOT , TIX , "win" ))
6863 if clean :
6964 nmake ("python9.mak" , "clean" )
70- nmake ("python9.mak" , MACHINE = machine )
71- nmake ("python9.mak" , "install" )
65+ nmake ("python9.mak" , MACHINE = machine , INSTALL_DIR = dest )
66+ nmake ("python9.mak" , "install" , INSTALL_DIR = dest )
7267
7368def main ():
74- if len (sys .argv ) < 2 or sys .argv [1 ] not in ("Win32" , "x64 " ):
75- print ("%s Win32|x64 " % sys .argv [0 ])
69+ if len (sys .argv ) < 2 or sys .argv [1 ] not in ("Win32" , "AMD64 " ):
70+ print ("%s Win32|AMD64 " % sys .argv [0 ])
7671 sys .exit (1 )
7772
7873 if "-c" in sys .argv :
0 commit comments