Let's say I have no internet, and a custom PyPI clone running at 10.0.0.2.
I want to be author a Python package that someone on my intranet can install. It has dependency X, which lives on my custom PyPI clone.
How can I author my package so that someone can install it, pulling in dependency X, without needing to apply any special pip configuration? That is, how can I author my package so that installing it pulls in custom PyPI dependencies? In this constraint, I only have access to edit the setup.py.
The context is that I am using a managed service that accepts a tar'd Python package with a setup.py file, and then runs pip to install everything. I don't have access to how pip is called, or any environmental config on that system.
Is there a way through setup.py alone to pull in packages from a custom IP address for a PyPI?