pip will now update to latest version of pip when doing a major install
Changes to be committed: modified: modules/pip.py
This commit is contained in:
parent
cb0eff3c4e
commit
a13a2c21cc
1 changed files with 3 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ def setup():
|
||||||
format='\n%(levelname)s: deploy.pip %(message)s',
|
format='\n%(levelname)s: deploy.pip %(message)s',
|
||||||
level=logging.DEBUG)
|
level=logging.DEBUG)
|
||||||
|
|
||||||
|
pip_update_latest = "pip install --upgrade pip"
|
||||||
|
|
||||||
pipinstall_cmd = "pip install -r {requirements}".format(
|
pipinstall_cmd = "pip install -r {requirements}".format(
|
||||||
requirements=configuration.virtualenv.requirements.filepath)
|
requirements=configuration.virtualenv.requirements.filepath)
|
||||||
|
|
||||||
|
|
@ -73,6 +75,7 @@ def setup():
|
||||||
pipinstall_cmd)
|
pipinstall_cmd)
|
||||||
else:
|
else:
|
||||||
with virtualenv():
|
with virtualenv():
|
||||||
|
run(pip_update_latest)
|
||||||
run(pipinstall_cmd)
|
run(pipinstall_cmd)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue