We’re using a requirements.txt file to store all the external modules needed. Every module but one is gathered from internet. The other one is stored on a folder under the one holding the requirements.txt file.
BTW, this module can be easily installed with pip install
I’ve tried using this:
file:folder/module
or this:
file:./folder/module
or even this:
folder/module
but always throws me an error.
Does anyone know which is the right way to do this?
Thanks
In the current version of pip (1.2.1) the way relative paths in a requirements file are interpreted is ambiguous and semi-broken. There is an open issue on the pip repository which explains the various problems and ambiguities in greater detail:
https://github.com/pypa/pip/issues/328
Long story short the current implementation does not match the description in the pip documentation, so as of this writing there is no consistent and reliable way to use relative paths in
requirements.txt.THAT SAID, placing the following in my
requirements.txt:works when there is a
setup.pyat the top level of themymoduledirectory. Note the lack of thefile::protocol designation and the inclusion of the leading./. This path is not relative to therequirements.txtfile, but rather to the current working directory. Therefore it is necessary to navigate into the same directory as therequirements.txtand then run the command: