-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
BUG: trying to compile numpy 1.22.1 on results in failure #20824
Comments
This seems like a likely environment issue - perhaps setuptools is not actually being updated, or is being picked up from elsewhere since it seems you're using the system python (note the Consider using virtual environments to avoid conflicts with system packages, e.g. try python -m venv my-env
source my-env/bin/activate.sh # Or similar, depending on your shell
python -m pip install setuptools==59.2
python -m pip install numpy==1.22.1 |
Yes, setuptools 60+ is known to fail, in 1.22.2 an error will be raised if it is detected during build. A proposed workaround is: |
Unfortunately this is part of a big ci/cd operation where we build and push wheels for various arches, cpython versions and glibc and musl to our wheel repo, which is used by all our docker images. We can't customize the environment for each package version so we have to rely on pip to pull in the necessary deps during build.
The part that confuses me is that prior to building the numpy wheel, pip installs setuptools 59.2.0 per the message below: I tried Thanks |
Thanks for trying that. From our point of view, numpy/distutils, which we and other projects rely on for C and Fortran support, will need to be replaced. SciPy is moving to meson and NumPy will follow when SciPy finishes. Others may move to cmake. Pure Pyhton projects should not have a problem. I expect there will be some pain during the transition. |
Thanks guys, you were right. Simply activating a venv prior to building the wheels solved this issue. I didn't have to downgrade setuptools first. I'll chalk it up to a pip issue with regards to the environment. |
Describe the issue:
Trying to compile numpy 1.22.1 on armhf (ubuntu focal) results in failure due to setuptools being too new (60.5.0) even though pip installs 5.9.20 as part of numpy install process. Numpy 1.22.0 compiles with no issues.
Reproduce the code example:
Error message:
NumPy/Python version information:
Python 3.8.10
pip 21.3.1
setuptools 60.5.0
wheel 0.37.1
The text was updated successfully, but these errors were encountered: