consolidating ensure checks to virtualenv when possible

This commit is contained in:
Nate Prewitt
2017-01-26 23:41:00 -07:00
parent b66d02a9d7
commit f0cc4add35
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
3.2.5:
- Significant speed improvements for pipenv run and pipenv shell.
3.2.4:
- $ pipenv uninstall --all
- Don't uninstall setuptools, wheel, pip, or six.
+2 -2
View File
@@ -710,7 +710,7 @@ def lock(three=None):
@click.option('--three/--two', is_flag=True, default=None, help="Use Python 3/2 when creating virtualenv.")
def shell(three=None):
# Ensure that virtualenv is available.
ensure_project(three=three)
ensure_virtualenv(three=three)
# Set an environment variable, so we know we're in the environment.
os.environ['PIPENV_ACTIVE'] = '1'
@@ -765,7 +765,7 @@ def shell(three=None):
@click.option('--three/--two', is_flag=True, default=None, help="Use Python 3/2 when creating virtualenv.")
def run(command, args, three=None):
# Ensure that virtualenv is available.
ensure_project(three=three)
ensure_virtualenv(three=three)
# Spawn the new process, and interact with it.
try: