-
Notifications
You must be signed in to change notification settings - Fork 2.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
Fix url package caching #6614
Fix url package caching #6614
Conversation
To my mind the key step in addressing #2415 is to arrange that the already-existing cache is shared between all parts of the codebase that could use it. Let me re-propose the steps I suggested over there: First:
Then: find some way to rearrange the code so that this cache can be shared by the It's not obvious to me what the best rearrangement is for the second part. Sketching out some ideas for that would maybe be useful prototyping, or just say in words what you're thinking and see if you can't attract some maintainer opinion on that too. As it stands, I'm not sure that there's much in this MR that I would expect to survive to a final fix. |
Thanks @dimbleby I agree this work was also me trying to wrap my head around the codebase and toying with some ideas. As you rightly pointed out I did deviate from your original points but for what it's worth I plan to work towards them moving forward. After spending some time in the code base, finding some way to rearrange the code so that this cache can be shared by the Chef seems like a bit of a challenge, it's likely if/when I figure it out someone will have already got to it. I don't have a lot of time to work on this but I'll keep plugging away when I can. Thanks for the feedback. |
👋 hey @tall-josh thanks for starting this work! I run into this issue everyday at work when using spacy models that come from a URL. curious to see if i could help with this effort at all, or if you were planning on continuing this work? |
Hi @metasyn I am likely not going to get the time to address this issue in the foreseeable future. Happy for someone else to take the reins. |
I see. Sounds good - in which case, maybe we should close this draft if its not intending to be worked on any longer? |
Sorry, all. I don't really have time to work on this |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #2415
Hi, I've had a crack at caching packages that are downloaded from wheel urls. This is a work in progress I'm hoping to get feedback/guidance. The points below hopefully explain some of my reasoning.
Chef
as is because I figured changing the way it determined cache locations would break existing caches.locations.py:DEFAULT_CACHE_DIR
as a starting point, but if someone was to configure a different location the existing implementation would not pick that up.