Created
October 3, 2012 18:20
-
-
Save qwcode/3828762 to your computer and use it in GitHub Desktop.
--package-cache
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
"--package-cache" | |
- a new "pip install" config option that offers name-based (i.e. not url-based) caching. | |
- the "--download-cache" option would stay as it is, and not be altered | |
- the package-cache dir would just contain packages (e.g. "nose-1.2.tar.gz", or lxml-2.5[..].whl), anything you've installed while using it. | |
- the package-cache would be turned off by default, since the user assumes a certain amount of risk/responsibility in using it (no hash checking) | |
- the package-cache (if turned on) would be checked prior to using the PackageFinder (which searches pypi and findlinks) | |
(if the req was "nose", any nose version in the package-cache would "win", unless --upgrade is specified) | |
- package-cache offers an alternative to this workflow: | |
- pip install -d DIR PACKAGES | |
- pip install --no-index --find-links=DIR PACKAGES | |
- "--package-cache" could be used with "--download-cache", but to no advantage most of the time. the only case I can imagine it would help: | |
- you've never used "--package-cache" before, but you have a download-cache | |
- the first attempt at using package-cache would benefit from an existing download-cache. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment