pigar icon indicating copy to clipboard operation
pigar copied to clipboard

Pigar uses underscores instead of hyphens

Open rusmux opened this issue 3 years ago • 1 comments

For packages with hyphens in their names, pigar uses underscores instead of hyphens. This way pip and conda do not recognize these packages and cannot find them.

rusmux avatar Jul 25 '22 08:07 rusmux

I believe python stores modules in this way (with underscores in the site-packages folder). But in my case pip has no issue installing packages with underscores instead of hyphens. Possible solution could be to just replace the underscores to normalize names as described in PEP503. re.sub(r"[-_.]+", "-", name).lower()

olixy avatar Sep 27 '22 22:09 olixy