mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #4797 from ELHoussineT/patch-1
Use PIPENV_SKIP_LOCK environment variable
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Use environment variable `PIPENV_SKIP_LOCK` to control the behaviour of lock skipping.
|
||||
@@ -313,13 +313,15 @@ class Setting:
|
||||
if interactive.
|
||||
"""
|
||||
|
||||
self.PIPENV_SKIP_LOCK = False
|
||||
self.PIPENV_SKIP_LOCK = bool(os.environ.get("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.
|
||||
|
||||
Usage: `export PIPENV_SKIP_LOCK=true` OR `export PIPENV_SKIP_LOCK=1` to skip automatic locking
|
||||
|
||||
NOTE: This only affects the ``install`` and ``uninstall`` commands.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user