@@ -692,15 +692,15 @@ def _create_batch_scripts(self):
692
692
call %~dp0env.bat
693
693
echo patch pip and current launchers for move
694
694
695
- %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True);dist.patch_all_shebang(to_movable=True) "
695
+ %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True)"
696
696
pause
697
697
""" )
698
698
699
699
self .create_batch_script ('make_winpython_fix.bat' ,r"""@echo off
700
700
call %~dp0env.bat
701
701
echo patch pip and current launchers for non-move
702
702
703
- %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=False);dist.patch_all_shebang(to_movable=False) "
703
+ %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=False)"
704
704
pause
705
705
""" )
706
706
@@ -738,7 +738,7 @@ def _create_batch_scripts(self):
738
738
echo this will upgrade pip with latest version, then patch it for WinPython portability ok ?
739
739
pause
740
740
%WINPYDIR%\python.exe -m pip install --upgrade --force-reinstall pip
741
- %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip')
741
+ %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True )
742
742
pause
743
743
""" )
744
744
@@ -820,6 +820,8 @@ def make(self, remove_existing=True, requirements=None): #, find_links=None):
820
820
self ._create_batch_scripts () # which set mingwpy as compiler
821
821
self ._run_complement_batch_scripts ("run_required_first.bat" )
822
822
823
+ # pre-patch current pip (until default python has pip 8.0.3)
824
+ self .distribution .patch_standard_packages ('pip' )
823
825
# force update of pip (FIRST) and setuptools here
824
826
for req in ('pip' , 'setuptools' ):
825
827
actions = ["install" ,"--upgrade" , "--force-reinstall" , req ]
0 commit comments