Don't necessarily upgrade 'six' when making virtualenv

This commit is contained in:
Lance Edgar 2018-08-16 10:10:34 -05:00
parent 9f29dc67d4
commit 167140dce1

View file

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