andreas-h/emiprep

Setup pip requirements

Closed this issue · 1 comments

Setup pip requirements

As described in https://packaging.python.org/discussions/install-requires-vs-requirements/, the setup.py requirements should list the minimal requirements, while the pip requirements.txt file

Whereas install_requires defines the dependencies for a single project, Requirements Files are often used to define the requirements for a complete python environment.

Whereas install_requires requirements are minimal, requirements files often contain an exhaustive listing of pinned versions for the purpose of achieving repeatable installations of a complete environment.

Whereas install_requires requirements are “Abstract”, i.e. not associated with any particular index, requirements files often contain pip options like --index-url or --find-links to make requirements “Concrete”, i.e. associated with a particular index or directory of packages. [1]

Whereas install_requires metadata is automatically analyzed by pip during an install, requirements files are not, and only are used when a user specifically installs them using pip install -r.