]> granicus.if.org Git - python/commitdiff
Issue #6807: Run msisupport.mak earlier.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 21 Feb 2012 17:12:02 +0000 (18:12 +0100)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 21 Feb 2012 17:12:02 +0000 (18:12 +0100)
Misc/NEWS
Tools/msi/msi.py

index 3726f976dcd944ffb63e26cdb3669c3f7cf9af09..825c3a7ccdad677c0290bf359c2a0a317d1da66b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -517,6 +517,8 @@ Extension Modules
 Build
 -----
 
+- Issue #6807: Run msisupport.mak earlier.
+
 - Issue #10580: Minor grammar change in Windows installer.
 
 - Issue #12627: Implement PEP 394 for Python 2.7 ("python2").
index 5475bd0f6073de32a76bc71515f6530a7b5b8ee7..d2caf345b1da5d812835f9f75a7cd603fdd4e0a0 100644 (file)
@@ -177,6 +177,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"):
@@ -374,8 +376,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 "'nmake /f msisupport.mak' failed"
     add_data(db, "Binary", [("Script", msilib.Binary("msisupport.dll"))])
     # See "Custom Action Type 1"
     if msilib.Win64: