data_dir heuristics #171
Labels
component: destinations
Related to WheelDestination and friends
type: discussion
Discussion of general questions, ideas, design, etc.
Hi,
i came here via poetry which has started depending on this lib as of the recently released 1.4
I'm not sure if this is a bug, or if pip is too lenient, but thought worth asking. I have a (malformed?) wheel where the data-dir uses different normalization to the package, causing this library to fail to find it.
pip (afict) uses a heuristic based on the name ending https://github.com/pypa/pip/blob/main/src/pip/_internal/operations/install/wheel.py#L537 (which looks similar to what was introduced here ed47a74 for finding the dist-info folder.
maybe
installer/src/installer/_core.py
Line 43 in ed47a74
i'm not very familiar with python packaging so i may be missing lots of context. if this is a reasonable suggestion however, i'm happy to try to make a patch
The text was updated successfully, but these errors were encountered: