When I'm listing dependencies in a setup.py
file's install_requires
entry, how do I specify that in order to install a given package, a different name must be passed to pip
than the package name?
For example, I can use pip
to install pyinterval
from PyPI, which I can then use in my code by doing from interval import interval, inf, imath
or similar. Is there a way to tell SetupTools that the pyinterval
entity "provides" the interval
package or something?
Edit: I found the packaging glossary, which clarifies for me the terminology difference between a "distribution package" and an "import package". In my case, pyinterval
is the distribution package, which provides the interval
import package.