Skip to content

Commit abbd57c

Browse files
committed
Merge pull request #239 from stonebig/master
upgrade_pip script
2 parents 1fab3de + 0b88f5c commit abbd57c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

make.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,15 @@ def _create_batch_scripts(self):
731731
call %~dp0env.bat
732732
cd %WINPYDIR%\Scripts
733733
%WINPYDIR%\scripts\jupyter-notebook.exe --notebook-dir=%WINPYDIR%\..\notebooks %*
734+
""")
735+
736+
self.create_batch_script('upgrade_pip.bat', r"""@echo off
737+
call %~dp0env.bat
738+
echo this will upgrade pip with latest version, then patch it for WinPython portability ok ?
739+
pause
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')
742+
pause
734743
""")
735744

736745
# pre-run mingw batch

0 commit comments

Comments
 (0)