PIPENV_PIP_INSTALL_FLAGS

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-11 10:55:46 -04:00
parent a6e2066632
commit bd99aa360b
2 changed files with 7 additions and 3 deletions
+4 -3
View File
@@ -33,7 +33,7 @@ from . import pep508checker, progress
from .environments import (
PIPENV_COLORBLIND, PIPENV_NOSPIN, PIPENV_SHELL_COMPAT,
PIPENV_VENV_IN_PROJECT, PIPENV_USE_SYSTEM, PIPENV_TIMEOUT,
PIPENV_SKIP_VALIDATION
PIPENV_SKIP_VALIDATION, PIPENV_PIP_INSTALL_FLAGS
)
# Backport required for earlier versions of Python.
@@ -791,11 +791,12 @@ def pip_install(
no_deps = '--no-deps' if no_deps else ''
pip_command = '"{0}" install {3} {1} -i {2} --exists-action w'.format(
pip_command = '"{0}" install {3} {1} -i {2} --exists-action w {4}'.format(
which_pip(allow_global=allow_global),
install_reqs,
source['url'],
no_deps
no_deps,
PIPENV_PIP_INSTALL_FLAGS or ''
)
if verbose:
+3
View File
@@ -39,5 +39,8 @@ if PIPENV_VENV_IN_PROJECT:
if os.name == 'nt':
PIPENV_NOSPIN = True
# Tells pip to pass extra stuff to $ pip install.
PIPENV_PIP_INSTALL_FLAGS = os.environ.get('PIPENV_PIP_INSTALL_FLAGS')
# Tells pipenv how long to wait for virtualenvs to be created in seconds
PIPENV_TIMEOUT = int(os.environ.get('PIPENV_TIMEOUT', 120))