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,
|
||||
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.
|
||||
"""
|
||||
|
@ -122,6 +122,7 @@ def mkvirtualenv(name, python=None, user=None, workon_home=None,
|
|||
else:
|
||||
pip_req = 'pip'
|
||||
with workon(name):
|
||||
if upgrade_six:
|
||||
pip('six', upgrade=True)
|
||||
pip(pip_req, upgrade=True)
|
||||
if upgrade_setuptools:
|
||||
|
|
Loading…
Reference in a new issue