-
Notifications
You must be signed in to change notification settings - Fork 26
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
install_requires on setup.py #143
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem to work. It fails in L.12. There might be a way of reading the setup first. Also, I think you might also need to add setuptools
as dependency.
ERROR: Command errored out with exit status 1:
command: /home/ardok/.local/share/virtualenvs/prueba-wBi6XUP1/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-cq4656eh/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-cq4656eh/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-c3y58m7h
cwd: /tmp/pip-req-build-cq4656eh/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-cq4656eh/setup.py", line 12, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
----------------------------------------
This is from a new environment created with pipenv.
Seems to be working on github actions. What are you trying to do? |
OK, sorry, I see what you mean now. I can't really see a way around this without adding a lot of garbage on setup.py. Could you work around this on TJPCov's CI? E.g. force numpy to get installed before anything else happens. This should be a bare minimum requirement for anyone wanting to use tjpcov or namaster... |
It works in the GitHub actions because you're manually installing the dependencies before installing NaMaster/.github/workflows/ci.yml Lines 35 to 53 in 8b95669
|
Following the Stack Overflow question pointed to by @carlosggarcia, and also using the information from #173 (comment), I think we can solve this problem by adding
On my Mac, adding this file gives a successful install with
|
Closes #138