Don't necessarily upgrade 'six' when making virtualenv
This commit is contained in:
parent
9f29dc67d4
commit
167140dce1
|
@ -110,7 +110,7 @@ def configure_virtualenvwrapper(user, workon_home=None, wrapper='/usr/local/bin/
|
||||||
|
|
||||||
|
|
||||||
def mkvirtualenv(name, python=None, user=None, workon_home=None,
|
def mkvirtualenv(name, python=None, user=None, workon_home=None,
|
||||||
upgrade_pip=True, upgrade_setuptools=True, upgrade_strategy=None):
|
upgrade_pip=True, upgrade_six=True, upgrade_setuptools=True, upgrade_strategy=None):
|
||||||
"""
|
"""
|
||||||
Make a new Python virtual environment.
|
Make a new Python virtual environment.
|
||||||
"""
|
"""
|
||||||
|
@ -122,7 +122,8 @@ def mkvirtualenv(name, python=None, user=None, workon_home=None,
|
||||||
else:
|
else:
|
||||||
pip_req = 'pip'
|
pip_req = 'pip'
|
||||||
with workon(name):
|
with workon(name):
|
||||||
pip('six', upgrade=True)
|
if upgrade_six:
|
||||||
|
pip('six', upgrade=True)
|
||||||
pip(pip_req, upgrade=True)
|
pip(pip_req, upgrade=True)
|
||||||
if upgrade_setuptools:
|
if upgrade_setuptools:
|
||||||
pip('setuptools', 'wheel', 'ndg-httpsclient', upgrade=True, upgrade_strategy=upgrade_strategy)
|
pip('setuptools', 'wheel', 'ndg-httpsclient', upgrade=True, upgrade_strategy=upgrade_strategy)
|
||||||
|
|
Loading…
Reference in a new issue