add PIPENV_SKIP_LOCK envvar, and suitable doc

This commit is contained in:
devxpy
2018-10-27 23:55:34 +05:30
parent e8bf34b548
commit 80a6dcbedd
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -127,6 +127,7 @@ def skip_lock_option(f):
return value
return option("--skip-lock", is_flag=True, default=False, expose_value=False,
help=u"Ignore locking mechanisms when installing—use the Pipfile, instead.",
envvar="PIPENV_SKIP_LOCK",
callback=callback, type=click_booltype)(f)
+10
View File
@@ -197,6 +197,16 @@ Default is to prompt the user for an answer if the current command line session
if interactive.
"""
PIPENV_SKIP_LOCK = False
"""If set, Pipenv won't lock dependencies automatically.
This might be desirable if a project has large number of dependencies,
because locking is an inherently slow operation.
Default is to lock dependencies and update ``Pipfile.lock`` on each run.
NOTE: This only affects the ``install`` and ``uninstall`` commands.
"""
# Internal, support running in a different Python from sys.executable.
PIPENV_PYTHON = os.environ.get("PIPENV_PYTHON")