switch to disable virtualenvs

This commit is contained in:
2017-06-03 19:07:05 -04:00
parent 8055035472
commit 5ef5bb0f79
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ PIPENV_MAX_DEPTH = int(os.environ.get('PIPENV_MAX_DEPTH', '3')) + 1
PIPENV_DEFAULT_THREE = os.environ.get('PIPENV_DEFAULT_THREE')
# Tells Pipenv to use the virtualenv-provided pip instead.
PIPENV_USE_SYSTEM = os.environ.get('VIRTUAL_ENV')
PIPENV_USE_SYSTEM = os.environ.get('VIRTUAL_ENV') if not 'PIPENV_IGNORE_VIRTUALENVS' in os.environ else False
# Use shell compatibility mode when using venv in project mode.
if PIPENV_VENV_IN_PROJECT:
+3
View File
@@ -10,6 +10,9 @@ from pipenv.cli import (activate_virtualenv, ensure_proper_casing,
parse_download_fname, parse_install_output, pip_install, pip_download)
from pipenv.project import Project
# Tell pipenv to ignore activated virtualenvs.
os.environ['PIPENV_IGNORE_VIRTUALENVS'] = 'True'
class TestPipenv():