Skip to content
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

Pigar uses underscores instead of hyphens #109

Open
rusmux opened this issue Jul 25, 2022 · 1 comment
Open

Pigar uses underscores instead of hyphens #109

rusmux opened this issue Jul 25, 2022 · 1 comment
Milestone

Comments

@rusmux
Copy link

rusmux commented Jul 25, 2022

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.

@olixy
Copy link

olixy commented Sep 27, 2022

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()

@damnever damnever added this to the v2 milestone Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants