-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Specific pip cache location environment variables #13043
Comments
Does |
Ha, I totally missed that option, thanks!!! Clearly looking in the wrong places of the documentation. |
Every pip option in the config (like I would honestly like these all spelt out explicitly in the docs for better SEO, but that's a seperate issue. |
Yes, that top line in that particular section was exactly what I was missing. I would suggest that section only has:
with less content it is more likely to see the Otherwise just an entry in the list that says My 2 cents. Thanks again. |
Well, pip is a volunteer project, so doc improvement PRs are usually quite welcome. |
@notatallshaw, done, see #13050. |
What's the problem this feature will solve?
On HPC systems, or educational systems where a large number of users are using
pip
to install packages.For course specific guides, they tend to install the same packages, and thus has a huge number of duplicated cached wheels located in their respective home folders.
Additionally on HPC systems, one will have a backup of the HOME folders which contains the necessary folders. However, backing up a pip cache seems irrelevant (configuring the backup to disable this folder could be done, but annoying).
Describe the solution you'd like
I would like an environment variable that governs the place of the cache (on HPC facilities this could be specified as a default sourced script.
I would propose the name:
to match the
XDG_CACHE_HOME
naming convention.It is clear that
XDG_CACHE_HOME
is not a good idea to change, since we don't want to alter other programs cache locations.Alternative Solutions
We have played with the thought of using the
/etc/pip.conf
for this:however, it isn't clear how to easily remove a variable using configuration files?
I.e. how can a user disable the cache-dir to just use the
XDG_CACHE_HOME
variable instead?Additional context
Nothing to add.
Code of Conduct
The text was updated successfully, but these errors were encountered: