1313
1414TCL = "tcl8.5.2"
1515TK = "tk8.5.2"
16- TIX = "tix-8.4.0 .x"
16+ TIX = "tix-8.4.3 .x"
1717
1818ROOT = os .path .abspath (os .path .join (here , par , par ))
1919# Windows 2000 compatibility: WINVER 0x0500
2323 '%s %s' )
2424
2525def nmake (makefile , command = "" , ** kw ):
26- defines = ' ' .join (k + '=' + v for k , v in kw .items ())
26+ defines = ' ' .join (k + '=' + str ( v ) for k , v in kw .items ())
2727 cmd = NMAKE % (makefile , defines , command )
2828 print ("\n \n " + cmd + "\n " )
2929 if os .system (cmd ) != 0 :
@@ -53,8 +53,8 @@ def build(platform, clean):
5353 os .chdir (os .path .join (ROOT , TK , "win" ))
5454 if clean :
5555 nmake ("makefile.vc" , "clean" , DEBUG = 0 , TCLDIR = tcldir )
56- nmake ("makefile.vc" , DEBUG = 0 , MACHINE = machine )
57- nmake ("makefile.vc" , "install" , DEBUG = 0 , INSTALLDIR = dest , MACHINE = machine )
56+ nmake ("makefile.vc" , DEBUG = 0 , MACHINE = machine , TCLDIR = tcldir )
57+ nmake ("makefile.vc" , "install" , DEBUG = 0 , INSTALLDIR = dest , MACHINE = machine , TCLDIR = tcldir )
5858
5959 # TIX
6060 if 1 :
@@ -63,7 +63,7 @@ def build(platform, clean):
6363 if clean :
6464 nmake ("python.mak" , "clean" )
6565 nmake ("python.mak" , MACHINE = machine , INSTALL_DIR = dest )
66- nmake ("python.mak" , "install" , INSTALL_DIR = dest )
66+ nmake ("python.mak" , "install" , MACHINE = machine , INSTALL_DIR = dest )
6767
6868def main ():
6969 if len (sys .argv ) < 2 or sys .argv [1 ] not in ("Win32" , "AMD64" ):
0 commit comments