Wrong captured package name when -
in name
#6127
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: invalid
Invalid issue/PR
Environment
Description
I am building local
cassandra-driver
packages using dir2pi, getting a tree like thisThen I want to install the local whl files using
pip install --find-links
, but pip complain that project name is wrong.I dig a bit into the code to find that when constructing a
Wheel
, pip using a regex to find the nameIt (the group
name
) matchedcassandra-driver
'scassadra
butdriver
dropped, so the project name mismatch.It used to work at pip 8.0 (yeah we are using pip 8.0, I am updating version of pip), with the regexp
which is slightly different, but it works
here is a demo of what the regex will capture
Found a related commit
283cf2ca78a70f7ff646b8ed173710888bd3dc5f
Expected behavior
The package is installed using local whl files
How to Reproduce
See description above
Output
See description above
The text was updated successfully, but these errors were encountered: