FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow passing the MSI file name to merge.py. · java66liu/python@6ffaec8 · GitHub

forked from glix/python

Commit 6ffaec8

Browse files
martin.v.loewis
committed
Allow passing the MSI file name to merge.py.
git-svn-id: http://svn.python.org/projects/python/trunk@66304 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 301e7c2 commit 6ffaec8

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎Misc/NEWS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ Tests
125125
Build
126126
-----
127127

128+
- Allow passing the MSI file name to merge.py.
129+
128130
- Issue #3758: Rename the 'check' target to 'patchcheck' so as to not clash
129131
with GNU build target guidelines.
130132

‎Tools/msi/merge.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
import msilib,os,win32com,tempfile
1+
import msilib,os,win32com,tempfile,sys
22
PCBUILD="PCBuild"
33
from config import *
44

55
Win64 = "amd64" in PCBUILD
66

77
mod_dir = os.path.join(os.environ["ProgramFiles"], "Common Files", "Merge Modules")
8+
msi = None
9+
if len(sys.argv)==2:
10+
msi = sys.argv[1]
811
if Win64:
912
modules = ["Microsoft_VC90_CRT_x86.msm", "policy_8_0_Microsoft_VC80_CRT_x86_x64.msm"]
10-
msi = "python-%s.amd64.msi" % full_current_version
13+
if not msi: msi = "python-%s.amd64.msi" % full_current_version
1114
else:
1215
modules = ["Microsoft_VC90_CRT_x86.msm","policy_8_0_Microsoft_VC80_CRT_x86.msm"]
13-
msi = "python-%s.msi" % full_current_version
16+
if not msi: msi = "python-%s.msi" % full_current_version
1417
for i, n in enumerate(modules):
1518
modules[i] = os.path.join(mod_dir, n)
1619

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL