summaryrefslogtreecommitdiffstats
path: root/Tools/msi/msi.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-08-30 15:23:04 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-08-30 15:23:04 (GMT)
commit4c6c7caf83479e7a5675823dc1a00988772a7533 (patch)
tree96ce112be142705789928028628915232a293ceb /Tools/msi/msi.py
parent945362cf971fb2e10f8f2a8e71e8ff10516ebe4c (diff)
downloadcpython-4c6c7caf83479e7a5675823dc1a00988772a7533.zip
cpython-4c6c7caf83479e7a5675823dc1a00988772a7533.tar.gz
cpython-4c6c7caf83479e7a5675823dc1a00988772a7533.tar.bz2
Port to Python 3.0.
Diffstat (limited to 'Tools/msi/msi.py')
-rw-r--r--Tools/msi/msi.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index a184973..f266fcc 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -103,8 +103,9 @@ extensions = [
msvcr71_uuid = "{8666C8DD-D0B4-4B42-928E-A69E32FA5D4D}"
pythondll_uuid = {
"24":"{9B81E618-2301-4035-AC77-75D9ABEB7301}",
- "25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}"
+ "25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}",
"26":"{34ebecac-f046-4e1c-b0e3-9bac3cdaacfa}",
+ "30":"{6953bc3b-6768-4291-8410-7914ce6e2ca8}",
} [major+minor]
# Build the mingw import library, libpythonXY.a
@@ -124,14 +125,14 @@ def build_mingw_lib(lib_file, def_file, dll_file, mingw_lib):
export_match = re.compile(r"^_imp__(.*) in python\d+\.dll").match
f = open(def_file,'w')
- print("LIBRARY %s" % dll_file, file=f)
- print("EXPORTS", file=f)
+ f.write("LIBRARY %s\n" % dll_file)
+ f.write("EXPORTS\n")
nm_pipe = os.popen(nm_command)
for line in nm_pipe.readlines():
m = export_match(line)
if m:
- print(m.group(1), file=f)
+ f.write(m.group(1)+"\n")
f.close()
exit = nm_pipe.close()