summaryrefslogtreecommitdiffstats
path: root/Tools/msi/msi.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-02-29 20:54:44 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-02-29 20:54:44 (GMT)
commit0e795e7d9225837bc6949a951ba514feab18f9ef (patch)
treea154d3d60145810c79682b9859e11d2336b58a44 /Tools/msi/msi.py
parentd9153fdc292cc1640cce6a455c5d2afc35297080 (diff)
downloadcpython-0e795e7d9225837bc6949a951ba514feab18f9ef.zip
cpython-0e795e7d9225837bc6949a951ba514feab18f9ef.tar.gz
cpython-0e795e7d9225837bc6949a951ba514feab18f9ef.tar.bz2
Package Tcl from tcltk64 on AMD64.
Diffstat (limited to 'Tools/msi/msi.py')
-rw-r--r--Tools/msi/msi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index f3e2e7f..03c07f3 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -1021,8 +1021,10 @@ def add_files(db):
sqlite_arch = "/ia64"
elif msilib.msi_type=="x64;1033":
sqlite_arch = "/amd64"
+ tclsuffix = "64"
else:
sqlite_arch = ""
+ tclsuffix = ""
lib.add_file(srcdir+"/"+sqlite_dir+sqlite_arch+"/sqlite3.dll")
if have_tcl:
if not os.path.exists("%s/%s/_tkinter.pyd" % (srcdir, PCBUILD)):
@@ -1031,7 +1033,7 @@ def add_files(db):
lib.start_component("TkDLLs", tcltk)
lib.add_file("_tkinter.pyd")
dlls.append("_tkinter.pyd")
- tcldir = os.path.normpath(srcdir+"/../tcltk/bin")
+ tcldir = os.path.normpath(srcdir+("/../tcltk%s/bin" % tclsuffix))
for f in glob.glob1(tcldir, "*.dll"):
lib.add_file(f, src=os.path.join(tcldir, f))
# check whether there are any unknown extensions
@@ -1055,7 +1057,7 @@ def add_files(db):
lib.add_file('libpython%s%s.a' % (major, minor))
if have_tcl:
# Add Tcl/Tk
- tcldirs = [(root, '../tcltk/lib', 'tcl')]
+ tcldirs = [(root, '../tcltk%s/lib' % tclsuffix, 'tcl')]
tcltk.set_current()
while tcldirs:
parent, phys, dir = tcldirs.pop()