Skip to content

Commit dbd3f61

Browse files
committed
Issue #6807: Run msisupport.mak earlier.
1 parent 26bb3cf commit dbd3f61

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ Library
474474
Build
475475
-----
476476

477+
- Issue #6807: Run msisupport.mak earlier.
478+
477479
- Issue #10580: Minor grammar change in Windows installer.
478480

479481
- Issue #13326: Clean __pycache__ directories correctly on OpenBSD.

Tools/msi/msi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def build_mingw_lib(lib_file, def_file, dll_file, mingw_lib):
179179
have_mingw = build_mingw_lib(lib_file, def_file, dll_file, mingw_lib)
180180

181181
# Determine the target architecture
182+
if os.system("nmake /nologo /c /f msisupport.mak") != 0:
183+
raise RuntimeError("'nmake /f msisupport.mak' failed")
182184
dll_path = os.path.join(srcdir, PCBUILD, dll_file)
183185
msilib.set_arch_from_file(dll_path)
184186
if msilib.pe_type(dll_path) != msilib.pe_type("msisupport.dll"):
@@ -376,8 +378,6 @@ def add_ui(db):
376378
# UpdateEditIDLE sets the REGISTRY.tcl component into
377379
# the installed/uninstalled state according to both the
378380
# Extensions and TclTk features.
379-
if os.system("nmake /nologo /c /f msisupport.mak") != 0:
380-
raise RuntimeError("'nmake /f msisupport.mak' failed")
381381
add_data(db, "Binary", [("Script", msilib.Binary("msisupport.dll"))])
382382
# See "Custom Action Type 1"
383383
if msilib.Win64:

0 commit comments

Comments
 (0)