mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
PIPENV_PIP_INSTALL_FLAGS
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+4
-3
@@ -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:
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user