-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use --pypi-mirror during virtualenv initialization
Adds support for the --pypi-mirror parameter for all operations which may result in a virtualenv initialization. When a virtualenv is initialized, pip attempts to download several dependencies from PyPI. If PyPI is unavailable, virtualenv silently uses local packages instead, which is acceptable in most cases. However, in some environments connection attempts to PyPI will stall rather than fail, causing a pipenv timeout. By using the mirror specified by --pypi-mirror, we can ensure virtualenv will attempt to download dependencies from an accessible mirror instead of PyPI. - Fixes #2455
- Loading branch information
1 parent
8256c53
commit f050a5a
Showing
2 changed files
with
67 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters