summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-08-24 14:06:10 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-08-24 14:06:10 (GMT)
commit5951ec0fdd048b0870e30cb5d8e29f6decc1cffc (patch)
tree1a32519b2c0ccd8961be6c3e70037070986e8dfa /Tools
parentbddf7244f0db2750a9478f49607d4e3a9361e61c (diff)
downloadcpython-5951ec0fdd048b0870e30cb5d8e29f6decc1cffc.zip
cpython-5951ec0fdd048b0870e30cb5d8e29f6decc1cffc.tar.gz
cpython-5951ec0fdd048b0870e30cb5d8e29f6decc1cffc.tar.bz2
Pick up 32-bit launcher from PGO directory on 64-bit PGO build.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/msi/msi.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index cacf904..d46270c 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -974,14 +974,17 @@ def add_files(db):
# 32-bit installer.
# XXX does this still allow to install the component on a 32-bit system?
# Pick up 32-bit binary always
- launcher = os.path.join(srcdir, "PCBuild", "py.exe")
+ launchersrc = PCBUILD
+ if launchersrc.lower() == 'pcbuild\\x64-pgo':
+ launchersrc = 'PCBuild\\win32-pgo'
+ launcher = os.path.join(srcdir, launchersrc, "py.exe")
launcherdir.start_component("launcher", flags = 8+256, keyfile="py.exe")
- launcherdir.add_file("%s/py.exe" % PCBUILD,
+ launcherdir.add_file(launcher,
version=installer.FileVersion(launcher, 0),
language=installer.FileVersion(launcher, 1))
- launcherw = os.path.join(srcdir, "PCBuild", "pyw.exe")
+ launcherw = os.path.join(srcdir, launchersrc, "pyw.exe")
launcherdir.start_component("launcherw", flags = 8+256, keyfile="pyw.exe")
- launcherdir.add_file("%s/pyw.exe" % PCBUILD,
+ launcherdir.add_file(launcherw,
version=installer.FileVersion(launcherw, 0),
language=installer.FileVersion(launcherw, 1))