conda-incubator / conda-pypi

Better PyPI interoperability for the conda ecosystem
https://conda-incubator.github.io/conda-pypi/
MIT License
12 stars 1 forks source link

Normalize PyPI specs #13

Closed jaimergp closed 4 months ago

jaimergp commented 4 months ago

Both conda and PyPI packages are case-insensitive. PyPI packages additionally disregard dashes and underscores: they are considered equivalent. However, conda does distinguish those.

As a result, when a user installs a-package and a_package, pip produces the same result but conda might not. This means that if the PyPI name is not on the mappings, we need to try some variants in addition to the original name (dashes as underscores, underscores as hashes).

For the sake of simplicity, I'll assume there are no mixed dash-underscore packages on conda-forge.