I have all the eggs my project requires pre-downloaded in a directory, and I would like setuptools to only install packages from that directory.
In my setup.cfg
I have:
[easy_install]
allow_hosts = None
find_links = ../../setup
I run python setup.py develop
and it finds and installs all the packages correctly.
For testing, I have an additional requirement, specified in setup.py
.
tests_require=["pinocchio==0.2"],
This egg also resides locally in the ../../setup
directory.
I run python setup.py test
and it sees the dependency and finds the egg in ../../setup
just fine. However, the egg gets installed to my current directory instead of the site-packages
directory with the rest of the eggs.
I've tried specifying the install-dir
both in setup.cfg
and on the command line and neither seemed to work for the tests
command.
I could just add the dependency to the install_requires
section, but I'd like to keep what is required for installation and tests separate if possible.
How can I keep the dependency in the tests_require
section, but have it installed to the site-packages
directory?