The hyphenated version is the canonical name on PyPI. Some versions of
some tools will automatically replace the underscore, but this is
unreliable and can cause problems when, for example, one creates a
library that depends on py-stringmatching, but pip installs it as
py_stringmatching, and then unneeded packages are removed from the
environment (causing py_stringmatching to be removed).
...as passed to setuptools.setup.
The hyphenated version is the canonical name on PyPI. Some versions of some tools will automatically replace the underscore, but this is unreliable and can cause problems when, for example, one creates a library that depends on
py-stringmatching
, butpip
installs it aspy_stringmatching
, and then unneeded packages are removed from the environment (causingpy_stringmatching
to be removed).