pip install -r requirements.txt requires pip installable lines, but pip install . uses the requirements parser to fill the install_requires portion of setup.py. There in no current way to write requirements.txt to work for both of these. The requirements parser must be changed to turn lines in requirements.txt like git+http://github.com/scidash/sciunit@dev#egg=sciunit-9999 into sciunit==9999 in install_requires. Then if the same parser puts the full line into dependency_requirements, at least pip install . can work with --process-dependency-requirements, while still allow pip install -r requirements.txt to work as well. This is a ridiculous hack, but Python package management is terrible.
pip install -r requirements.txt
requires pip installable lines, butpip install .
uses the requirements parser to fill theinstall_requires
portion of setup.py. There in no current way to write requirements.txt to work for both of these. The requirements parser must be changed to turn lines in requirements.txt likegit+http://github.com/scidash/sciunit@dev#egg=sciunit-9999
intosciunit==9999
in install_requires. Then if the same parser puts the full line into dependency_requirements, at leastpip install .
can work with --process-dependency-requirements, while still allowpip install -r requirements.txt
to work as well. This is a ridiculous hack, but Python package management is terrible.