Installation from sdist fails because of missing requirements file
Opened this issue · 0 comments
g-crocker commented
Describe the bug
When installing Noronha from source, it fails because the requirements file is missing
To Reproduce
From Noronha root dir, generate the sdist: python setup.py sdist
Try to install from the generated tar: pip install dist/noronha-dataops-1.6.1.tar.gz
Log messages + Traceback
ERROR: Command errored out with exit status 1:
command: /home/gcrocker/anaconda3/envs/teste/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-54el91qi/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-54el91qi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-j0ghskpw
cwd: /tmp/pip-req-build-54el91qi/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-54el91qi/setup.py", line 42, in <module>
install_requires=open('./requirements/{}_reqs.txt'.format(
FileNotFoundError: [Errno 2] No such file or directory: './requirements/off_board_reqs.txt'
----------------------------------------
WARNING: Discarding file:///x/x/x/noronha/dist/noronha-dataops-1.6.1.tar.gz. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Expected behavior
Package should be generated with all the required files for installation
Environment
- OS version: Ubuntu 20.04
- Docker version: N/A
- K8s version: N/A
- Noronha version: 1.6.1
Additional context
Installation from wheel succeeds:
python setup.py bdist_wheel
pip install dist/noronha_dataops-1.6.1-py3-none-any.whl