mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
consolidating ensure checks to virtualenv when possible
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user