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.
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
anda_package
,pip
produces the same result butconda
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.