-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
PDM Builds up a huge cache over time #1301
Comments
Related to #683 ? |
Why would it clear itself? Genuine question. |
I dont know? Is it normal to build up insanely large caches like this? |
With enough time, you end up installing multiple versions of many libraries, some of which being quite heavy (torch 900MB!, pydantic 30MB, etc). So I understand the size of the cached However I don't know how the |
Why not? Care to look at the size of |
pip cache size shows about 1/4 the size there but I guess that is to be expected if most of my installations are happening through pdm? |
Regardless -- would probably need to collect some better usage stats to compare... ~/Library/Caches
❯ du -sh pip/
1.0G pip/
~/Library/Caches
❯ du -sh pdm/
2.7G pdm/ |
Unrelated but making a venv from this command seems like a bug? ~/Library/Caches
❯ pdm cache clear
5619 files are removed
python.use_venv is on, creating a virtualenv for this project...
Virtualenv is created successfully at /Users/jslesar/Library/Caches/.venv |
It may be just you, I can't reproduce, do you have any plugins installed? |
What plugins do you mean here? I run starship + iterm in zshell ❯ mkdir projects
❯ cd projects
~/projects
❯ ls
~/projects
❯ pdm cache clear
53 files are removed
python.use_venv is on, creating a virtualenv for this project...
Virtualenv is created successfully at /Users/jslesar/projects/.venv |
Regarding the cache: I suppose pypa/pip#3138 and pypa/pipenv#3655 don't clear their cache either. Regarding creating a virtualenv when it's unnecessary, I think this is a regression with PDM2. I also see on my install (with no plugins) that PDM creates a virtual env any time I clear the cache (I even tried |
we are using platform.sh for hosting and we keep going over the build cache size. would be nice if there would be a way to define the maximum space the cache is allowed to use up and then use an LRU algorithm to clear stuff from the cache. note I think the situation is particularily problematic since we are downloading spaCy models as dependencies which are several GB in size. |
Can pdm reuse pip's cache? |
note in our case I suspect the issue is caused by downloading spacy model dependencies via download URL
however so those files should not get cached.
|
This is not for download cache. |
Not sure how I can better support but this is over the course of several months. Wondering why it doesnt clear itself out?
The text was updated successfully, but these errors were encountered: