Skip to content

upgrade_pip script #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
upgrade_pip script
  • Loading branch information
stonebig committed Jan 30, 2016
commit 0b88f5c53e5306255fd3d9497480df2ef0665253
9 changes: 9 additions & 0 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,15 @@ def _create_batch_scripts(self):
call %~dp0env.bat
cd %WINPYDIR%\Scripts
%WINPYDIR%\scripts\jupyter-notebook.exe --notebook-dir=%WINPYDIR%\..\notebooks %*
""")

self.create_batch_script('upgrade_pip.bat', r"""@echo off
call %~dp0env.bat
echo this will upgrade pip with latest version, then patch it for WinPython portability ok ?
pause
%WINPYDIR%\python.exe -m pip install --upgrade --force-reinstall pip
%WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip')
pause
""")

# pre-run mingw batch
Expand Down