-
-
Notifications
You must be signed in to change notification settings - Fork 102
Let pip use a local download cache #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Makefile
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why no period prefixing .clean-env
but one prefixing .clean-cache
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the .
prefixed targets are supposed to be "plumbing commands", .clean-cache
is probably one of those commands that people won't need to run specifically or know anything about. clean-env
should be exposed so there is a way of rebuilding the virtualenv without clearing the download cache by using clean-all
(which would make caching pointless).
@joshfriend Will |
With this configuration, pip will still look at the PyPI index, but doesn't re-download the packages. We could use |
The best would setup would be don't touch the internet and use the local cache unless a dependency isn't met then download and cache from PyPI. I've been in situations where |
Makefile
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could just be rm -rf $(PIP_CACHE_DIR)
.
Let pip use a local download cache
Let pip use a local download cache
This noticeably speeds up the time it takes to reinstall dependencies.