mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
add PIPENV_SKIP_LOCK envvar, and suitable doc
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user