I'm using pbr which uses a requirements.txt
file to look for dependencies.
I've a line in requirements.txt
like git+ssh://[email protected]/user/repo.git
and it works when I run pip install -r requirements.txt
However, when I run python setup.py build
I run in to the error:
error in setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'+ssh://g'"
There are many Stack Overflow answers that deal with this problem exclusively when using setuptools
and all of them suggest putting the Git dependency into the dependency_links
list in setup.py
.
I would like pbr to be able to deal with my Git dependency directly from requirements.txt
in a way that works when I run both python setup.py build
and pip install -r requirements.txt
.
Is this possible? Are there any close workarounds?