Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
67543a9d
Commit
67543a9d
authored
Sep 08, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow passing the MSI file name to merge.py.
parent
ace0bcf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Misc/NEWS
Misc/NEWS
+2
-0
Tools/msi/merge.py
Tools/msi/merge.py
+6
-3
No files found.
Misc/NEWS
View file @
67543a9d
...
...
@@ -125,6 +125,8 @@ Tests
Build
-----
- Allow passing the MSI file name to merge.py.
- Issue #3758: Rename the 'check' target to 'patchcheck' so as to not clash
with GNU build target guidelines.
...
...
Tools/msi/merge.py
View file @
67543a9d
import
msilib
,
os
,
win32com
,
tempfile
import
msilib
,
os
,
win32com
,
tempfile
,
sys
PCBUILD
=
"PCBuild"
from
config
import
*
Win64
=
"amd64"
in
PCBUILD
mod_dir
=
os
.
path
.
join
(
os
.
environ
[
"ProgramFiles"
],
"Common Files"
,
"Merge Modules"
)
msi
=
None
if
len
(
sys
.
argv
)
==
2
:
msi
=
sys
.
argv
[
1
]
if
Win64
:
modules
=
[
"Microsoft_VC90_CRT_x86.msm"
,
"policy_8_0_Microsoft_VC80_CRT_x86_x64.msm"
]
msi
=
"python-%s.amd64.msi"
%
full_current_version
if
not
msi
:
msi
=
"python-%s.amd64.msi"
%
full_current_version
else
:
modules
=
[
"Microsoft_VC90_CRT_x86.msm"
,
"policy_8_0_Microsoft_VC80_CRT_x86.msm"
]
msi
=
"python-%s.msi"
%
full_current_version
if
not
msi
:
msi
=
"python-%s.msi"
%
full_current_version
for
i
,
n
in
enumerate
(
modules
):
modules
[
i
]
=
os
.
path
.
join
(
mod_dir
,
n
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment