Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f59fa5

Browse files
committed
Fix various build problems.
1 parent c8fdd10 commit 9f59fa5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PCbuild/build_tkinter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
TCL = "tcl8.5.2"
1515
TK = "tk8.5.2"
16-
TIX = "tix-8.4.0.x"
16+
TIX = "tix-8.4.3.x"
1717

1818
ROOT = os.path.abspath(os.path.join(here, par, par))
1919
# Windows 2000 compatibility: WINVER 0x0500
@@ -23,7 +23,7 @@
2323
'%s %s')
2424

2525
def 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

6868
def main():
6969
if len(sys.argv) < 2 or sys.argv[1] not in ("Win32", "AMD64"):

0 commit comments

Comments
 (0)