Skip to content

Commit 3fd0bd4

Browse files
authored
Merge pull request #1101 from stonebig/master
make pipdeptree survive longer to pip changes
2 parents a88d72d + 21d4bf5 commit 3fd0bd4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

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)