-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Handle eggs for libraries with versions containing _ in the filename #226
Comments
Sorry about that. Looks like this is a bug due to an old @baroquebobcat could you tell me what package version you're seeing this with? (for a test case) |
Sure. Here's a foobarified version: For reference, here's the egg filename metadata docs https://pythonhosted.org/setuptools/formats.html#filename-embedded-metadata I think what we'd need to do is check the normalized safe_version-ified versions against eachother, then if they match pull down the egg and check the internal metadata which isn't filename-ified, just to be sure. If we could ensure that pex always used a setuptools >=8.0 for the |
I think I rather just drop support for local specifiers if the |
Before recent releases of setuptools, the version numbers in eggs were mangled. `safe_version` handles this correctly in modern `setuptools` and should work on older setuptools as well. Closes pex-tool#226.
Before recent releases of setuptools, the version numbers in eggs were mangled. `safe_version` handles this correctly in modern `setuptools` and should work on older setuptools as well. Closes pex-tool#226.
There's a bug in pex versions 1.1.3 and 1.1.4 that prevents eggs with '_'s in the version metadata in their file name from being discovered. See pex-tool/pex#226 for more info. Testing Done: Reverted the version upgrade and saw the pex creation work again for a requirement with a _ Bugs closed: 3184 Reviewed at https://rbcommons.com/s/twitter/r/3687/
In 1.1.3, there was a change that caused the versions of packages to not be normalized anymore. This is a problem because the egg filename spec normalizes versions using to_filename, which turns '-'s into '_'s. So, any egg with a version containing an '-' or any character normalized to a '-' can't be resolved with pex's resolver.
The text was updated successfully, but these errors were encountered: