]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #6807: Run msisupport.mak earlier.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 21 Feb 2012 17:06:22 +0000 (18:06 +0100)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 21 Feb 2012 17:06:22 +0000 (18:06 +0100)
Misc/NEWS
Tools/msi/msi.py

index f387dc77e61b2f84f989707aaf23fcb5751a4778..f8081a9300bc8e85ef095088fc74968d056736fc 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -474,6 +474,8 @@ Library
 Build
 -----
 
+- Issue #6807: Run msisupport.mak earlier.
+
 - Issue #10580: Minor grammar change in Windows installer.
 
 - Issue #13326: Clean __pycache__ directories correctly on OpenBSD.
index 57b50332e8b2a4522d4a9806b131eb8694479c5c..19cd7fb1dd31dd59098f341b7fcad2354e1339c7 100644 (file)
@@ -179,6 +179,8 @@ mingw_lib = os.path.join(srcdir, PCBUILD, "libpython%s%s.a" % (major, minor))
 have_mingw = build_mingw_lib(lib_file, def_file, dll_file, mingw_lib)
 
 # Determine the target architecture
+if os.system("nmake /nologo /c /f msisupport.mak") != 0:
+    raise RuntimeError("'nmake /f msisupport.mak' failed")
 dll_path = os.path.join(srcdir, PCBUILD, dll_file)
 msilib.set_arch_from_file(dll_path)
 if msilib.pe_type(dll_path) != msilib.pe_type("msisupport.dll"):
@@ -376,8 +378,6 @@ def add_ui(db):
     # UpdateEditIDLE sets the REGISTRY.tcl component into
     # the installed/uninstalled state according to both the
     # Extensions and TclTk features.
-    if os.system("nmake /nologo /c /f msisupport.mak") != 0:
-        raise RuntimeError("'nmake /f msisupport.mak' failed")
     add_data(db, "Binary", [("Script", msilib.Binary("msisupport.dll"))])
     # See "Custom Action Type 1"
     if msilib.Win64: