Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion between setup.py's install_requires and requirements.txt #78

Open
hickford opened this issue Sep 26, 2015 · 1 comment
Open

Comments

@hickford
Copy link
Contributor

  1. http://blog.miguelgrinberg.com/post/the-package-dependency-blues
  2. setup.py/install_requires vs requirements.txt packaging.python.org#10
  3. https://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool

I remember being confused myself. In the end I went with setup.py for my project

Python Packaging User Guide describes the differences, but doesn't so much explain the 'why' http://python-packaging-user-guide.readthedocs.org/en/latest/requirements/

@ncoghlan
Copy link
Member

The existing footnote does link out to @dstufft's post at https://caremad.io/2013/07/setup-vs-requirement/ to better cover the "Why?", but there could be a more role-oriented description of that, which is that setup.py is intended for use by library publishers, while requirements.txt is intended for application integrators.

That line gets blurry for web application developers, since they're both the publisher and the integrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants