Skip to content

Commit 90c851d

Browse files
committed
Merge pull request #267 from stonebig/master
improve upgradability
2 parents c3030f8 + 1c674a7 commit 90c851d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

make.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,15 +692,15 @@ def _create_batch_scripts(self):
692692
call %~dp0env.bat
693693
echo patch pip and current launchers for move
694694
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)"
696696
pause
697697
""")
698698

699699
self.create_batch_script('make_winpython_fix.bat',r"""@echo off
700700
call %~dp0env.bat
701701
echo patch pip and current launchers for non-move
702702
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)"
704704
pause
705705
""")
706706

@@ -738,7 +738,7 @@ def _create_batch_scripts(self):
738738
echo this will upgrade pip with latest version, then patch it for WinPython portability ok ?
739739
pause
740740
%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)
742742
pause
743743
""")
744744

@@ -820,6 +820,8 @@ def make(self, remove_existing=True, requirements=None): #, find_links=None):
820820
self._create_batch_scripts() # which set mingwpy as compiler
821821
self._run_complement_batch_scripts("run_required_first.bat")
822822

823+
# pre-patch current pip (until default python has pip 8.0.3)
824+
self.distribution.patch_standard_packages('pip')
823825
# force update of pip (FIRST) and setuptools here
824826
for req in ('pip', 'setuptools'):
825827
actions = ["install","--upgrade", "--force-reinstall", req]

0 commit comments

Comments
 (0)