diff options
author | Donald Stufft <donald@stufft.io> | 2016-01-19 12:15:19 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2016-01-19 12:15:19 -0500 |
commit | 5c441158838f0960b78a28c0f1373ecce4868bb6 (patch) | |
tree | 52542fb089c42b10bc6b1598e990ca0e605172d6 /virtualenv.py | |
parent | 65c63eab154d7e837981cb5d9ba916be652d7103 (diff) | |
download | virtualenv-5c441158838f0960b78a28c0f1373ecce4868bb6.tar.gz |
Make the --no-(pip|setuptools|wheel) options independent
Diffstat (limited to 'virtualenv.py')
-rwxr-xr-x | virtualenv.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/virtualenv.py b/virtualenv.py index 9819b1c..7102af0 100755 --- a/virtualenv.py +++ b/virtualenv.py @@ -581,7 +581,7 @@ def main(): '--no-setuptools', dest='no_setuptools', action='store_true', - help='Do not install setuptools (or pip) in the new virtualenv.') + help='Do not install setuptools in the new virtualenv.') parser.add_option( '--no-pip', @@ -871,12 +871,18 @@ def create_environment(home_dir, site_packages=False, clear=False, install_distutils(home_dir) + to_install = [] + if not no_setuptools: - to_install = ['setuptools'] - if not no_pip: - to_install.append('pip') - if not no_wheel: - to_install.append('wheel') + to_install.append('setuptools') + + if not no_pip: + to_install.append('pip') + + if not no_wheel: + to_install.append('wheel') + + if to_install: install_wheel( to_install, py_executable, |