I have in my packages setup.py:
from setuptools import setup
setup(
dependency_links=['http://local.mirror'],
install_requires=[
'many',
'different',
'packages',
],
...
)
What seems to happen is that setuptools will load entries from install_requires in reverse order, and it will respect the dependency_links entry for only the last entry in install_requires (it installs things in reverse order).
There’s plenty of discussion about how to add packages that aren’t in PyPI, but I can’t seem to find my way about ensuring that my local entry is used first, or exclusively.
Placing the following
setup.cfgfile in the same location assetup.pyhas addressed this: