13

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?

user
  • 5,370
  • 8
  • 47
  • 75
nanvel
  • 1,384
  • 1
  • 13
  • 16
  • possible duplicate of [How can I reference requirements.txt for the install\_requires kwarg in setuptools' setup.py file?](http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool) – Rafael Barros Oct 11 '14 at 20:46
  • 1
    @RafaelBarros, yes, I am doing the same, but it doesn't work for me. – nanvel Oct 11 '14 at 20:50
  • Can you share the folder structure? the exception is saying it can't find the `requirements.txt` file, is it on the same directory as setup.py? – Rafael Barros Oct 11 '14 at 20:52
  • @RafaelBarros, yes, of course, see [tornado-botocore](https://github.com/nanvel/tornado-botocore) – nanvel Oct 11 '14 at 20:55
  • 4
    @RafaelBarros, resolved by adding `include requirements.txt` into Manifest.in. – nanvel Oct 11 '14 at 22:41

1 Answers1

12

Add requirements.txt to MANIFEST.in.

nanvel
  • 1,384
  • 1
  • 13
  • 16