-
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
Determine if sdist name is "unique" enough for wheel cache key #2676
Comments
How will we determine this? |
I meant to ping @pypa/pip-developers to see what other people thought, if we could trust that two different repositories (like PyPI and devpi, or two different devpis) that had the same public version (not local version) for the same project ( |
To answer your specific question, there's not a good way to determine this besides folks to try and guess and maybe solicit some anecdotal evidence. Mostly I added this issue to remember to do that. |
I think its here-be-dragons, because there's no defined guarantee about which repo pip will choose from when two repos have the same version of X. |
Well, you can do Before auto wheels you could do If I recall even when the old download cache used just the URL, there was complaints about it not picking up updated copies of the package, and it was modified so that it also took into account the I personally think it's a bit silly to have the same version mean different things, I'm mostly worried about breaking someones workflow for a (minor) optimization when guarding against it isn't very hard. I'll probably go ahead and work something up myself for this one, feel free to ignore it for now. |
Ok, but if I can help let me know - I hate having release-blocker's on a project. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Right now #2618 uses the sdist name as a cache key (though it uses a 1:M relationship to handle sdists which can output multiple different Wheels). We need to figure out if that is sufficient or if we should use the entire URL like the download cache used to use. A pro is that this will allow sharing a wheel cache between multiple indexes, but a con is that there's possible cache corruption between multiple indexes if you don't generate a local version for modifications and the like.
The text was updated successfully, but these errors were encountered: