8000 make pipdeptree survive longer to pip changes · winpython/winpython@21d4bf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 21d4bf5

Browse files
committed
make pipdeptree survive longer to pip changes
1 parent 0bd58a4 commit 21d4bf5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

make.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,12 @@ def _create_batch_scripts_initial(self):
11361136
11371137
:after_pyzo_conf
11381138
1139+
rem ******************
1140+
rem handle dying pipdeptree if included
1141+
rem ******************
1142+
set tmp_pyz=%WINPYDIR%\Lib\site-packages\pipdeptree.py
1143+
if exist "%tmp_pyz%" set _PIP_USE_IMPORTLIB_METADATA=0
1144+
11391145
11401146
rem ******************
11411147
rem WinPython.ini part (removed from nsis)
@@ -1293,6 +1299,16 @@ def _create_batch_scripts_initial(self):
12931299
gui = 'none'| Add-Content -Path $env:tmp_pyz
12941300
}
12951301
1302+
1303+
#####################
1304+
### handle dying pipdeptree if included
1305+
#####################
1306+
$env:tmp_pyz = "$env:WINPYDIR\Lib\site-packages\pipdeptree.py"
1307+
if (Test-Path "$env:tmp_pyz") {
1308+
$env:_PIP_USE_IMPORTLIB_METADATA=0
1309+
}
1310+
1311+
12961312
#####################
12971313
### WinPython.ini part (removed from nsis)
12981314
#####################

0 commit comments

Comments
 (0)
0