-
Notifications
You must be signed in to change notification settings - Fork 615
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
Can't find .dist-info for package with local version string #2424
Comments
One thing I notice is that pip is not considering the package version in looking for the `.dist-info: https://github.com/pypa/pip/blob/36823099a9cdd83261fdbc8c1d2a24fa2eea72ca/src/pip/_internal/utils/wheel.py#L60 But uv is:
Perhaps a solution for uv is asserting that there is only one |
I'll take a look! |
My read of the spec is that it should still retain the |
Are you able to share how you're building your wheel? E.g. which tool? |
## Summary It turns out that pip does _not_ validate the normalization of the version specifier in the `.dist-info` directory. In particular, it seems that some tools replace the `+` in a local version segment with a `_`. Closes #2424.
Thanks for submitting a fix. I'll try it out ASAP. I thought I found some documentation saying that the prefix to |
0.1.21 works in our environment at flyzipline.com. Thanks! I'll start looking at migrating over to uv soon. |
My requirements.txt has this:
When I
uv pip install -r requirements.txt
:If I expand the whl, I see this dir:
The
+
is being converted to a_
. I suspect that is why they dist-info can't be found. There is kind of a mess of Python version strings where+
is a legal part of a version string denoting a local version, but it isn't allowed in the name of the.dist-info
dir.Running version
0.1.18
in a docker Linux shell.The text was updated successfully, but these errors were encountered: