nanvel nanvel - 21 days ago 11
Python Question

setup.py doesn't see my requirements.txt

Try

pip install tornado-botocore


it says:

pip.exceptions.InstallationError: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'


Code inside setup.py:

REQUIREMETS = [str(r.req) for r in parse_requirements('requirements.txt')]


setup(
...
package_data={'': ['requirements.txt']},
install_requires=REQUIREMETS,
)


Any thoughts on this?

Answer

Add requirements.txt to MANIFEST.in.

Comments