You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows try to build Python+Installer using tools\msi\buildrelease.bat:
Use get_externals.batto offline-cache packages
Set EXTERNALS_DIR
start buildrelease.bat
Result <...>Python-3.12.2\Tools\msi\launcher\launcher.wixproj" (default target) (1) -> <...>Python-3.12.2\Tools\msi\msi.targets(78,5): error MSB4019: The imported project "C:\Wix.targets" was not found. Confirm that the expression in the Import declaration "\Wix.targets" is correct, and that the file exists on disk. [<...>Python-3.12.2\Tools\msi\launcher\launcher.wixproj]
Note that get_externals.bat puts wix-314 into the root of EXTERNALS_DIR while Python-3.12.2/Tools/msi/wix.props expects a subdirectory windows-installer.
See the better workaround below. Deleting this patch as it goes into the wrong direction
CPython versions tested on:
3.12
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered:
Addition: The same applies to the redist-1 path in the same file.
My guess is that buildrelease.bat and wix.props (unlike get_externals.bat) do not check whether EXTERNALS_DIR is set and calculate different paths. All scripts should come to the same final results
Bug report
Bug description:
On Windows try to build Python+Installer using
tools\msi\buildrelease.bat
:Use
get_externals.bat
to offline-cache packagesSet
EXTERNALS_DIR
start
buildrelease.bat
Result
<...>Python-3.12.2\Tools\msi\launcher\launcher.wixproj" (default target) (1) -> <...>Python-3.12.2\Tools\msi\msi.targets(78,5): error MSB4019: The imported project "C:\Wix.targets" was not found. Confirm that the expression in the Import declaration "\Wix.targets" is correct, and that the file exists on disk. [<...>Python-3.12.2\Tools\msi\launcher\launcher.wixproj]
Note that
get_externals.bat
puts wix-314 into the root ofEXTERNALS_DIR
whilePython-3.12.2/Tools/msi/wix.props
expects a subdirectorywindows-installer
.See the better workaround below. Deleting this patch as it goes into the wrong direction
CPython versions tested on:
3.12
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: