Merge pull request #3811 from jerr0328/bugfix/3652

Allow overriding `PIPENV_INSTALL_TIMEOUT` environment variable
This commit is contained in:
Frost Ming
2019-06-25 13:09:17 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Allow overriding PIPENV_INSTALL_TIMEOUT environment variable (in seconds).
+1 -1
View File
@@ -99,7 +99,7 @@ environment, and reuses it if possible. This is usually the desired behavior,
and enables the user to use any user-built environments with Pipenv.
"""
PIPENV_INSTALL_TIMEOUT = 60 * 15
PIPENV_INSTALL_TIMEOUT = int(os.environ.get("PIPENV_INSTALL_TIMEOUT", 60 * 15))
"""Max number of seconds to wait for package installation.
Defaults to 900 (15 minutes), a very long arbitrary time.