diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-12-10 08:11:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 08:11:21 -0800 |
commit | 1c3de541e64f75046b20cdd27bada1557e550bcd (patch) | |
tree | 958a34f1023404eb33b87a55ed52b34e3702ccd8 /Tools | |
parent | bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079) (diff) | |
download | cpython-1c3de541e64f75046b20cdd27bada1557e550bcd.tar.gz cpython-1c3de541e64f75046b20cdd27bada1557e550bcd.tar.bz2 cpython-1c3de541e64f75046b20cdd27bada1557e550bcd.zip |
bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/msi/lib/lib_files.wxs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Tools/msi/lib/lib_files.wxs b/Tools/msi/lib/lib_files.wxs index da9d1c9f346..4bd0c57e322 100644 --- a/Tools/msi/lib/lib_files.wxs +++ b/Tools/msi/lib/lib_files.wxs @@ -2,6 +2,8 @@ <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?define exts=pyexpat;select;unicodedata;winsound;_bz2;_elementtree;_socket;_ssl;_msi;_ctypes;_hashlib;_multiprocessing;_lzma;_decimal;_overlapped;_sqlite3;_asyncio;_queue;_contextvars ?> <Fragment> + <DirectoryRef Id="Lib_venv_scripts_nt" /> + <ComponentGroup Id="lib_extensions"> <?foreach ext in $(var.exts)?> @@ -20,10 +22,25 @@ <Component Id="libssl.dll" Directory="DLLs" Guid="*"> <File Name="libssl$(var.ssltag).dll" KeyPath="yes" /> </Component> + <Component Id="venvlauncher.exe" Directory="Lib_venv_scripts_nt" Guid="*"> + <File Name="python.exe" Source="venvlauncher.exe" KeyPath="yes" /> + </Component> + <Component Id="venvwlauncher.exe" Directory="Lib_venv_scripts_nt" Guid="*"> + <File Name="pythonw.exe" Source="venvwlauncher.exe" KeyPath="yes" /> + </Component> </ComponentGroup> </Fragment> <Fragment> + <!-- The auto-generated directory is not available when building symbols --> + <DirectoryRef Id="Lib"> + <Directory Id="Lib_venv__pdbs" Name="venv"> + <Directory Id="Lib_venv_scripts__pdbs" Name="scripts"> + <Directory Id="Lib_venv_scripts_nt__pdbs" Name="nt" /> + </Directory> + </Directory> + </DirectoryRef> + <ComponentGroup Id="lib_extensions_symbols"> <?foreach ext in $(var.exts)?> @@ -42,6 +59,12 @@ <Component Id="libssl.pdb" Directory="DLLs" Guid="*"> <File Name="libssl$(var.ssltag).pdb" KeyPath="yes" /> </Component> + <Component Id="venvlauncher.pdb" Directory="Lib_venv_scripts_nt__pdbs" Guid="*"> + <File Name="python.pdb" Source="venvlauncher.pdb" KeyPath="yes" /> + </Component> + <Component Id="venvwlauncher.pdb" Directory="Lib_venv_scripts_nt__pdbs" Guid="*"> + <File Name="pythonw.pdb" Source="venvwlauncher.pdb" KeyPath="yes" /> + </Component> </ComponentGroup> </Fragment> |