-
Notifications
You must be signed in to change notification settings - Fork 3k
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
PyPy 7.3.7 & MacOS 11.x: Numpy fails to build, but only as a build dependency when --use-pep517
is active.
#10631
Comments
/cc @mattip Could you paste the output of |
Strange, I see the valid tag
|
Nope, it's the same error when I have the environment activated. |
And finally, can you run the failing command with |
I added the output to my Gist: https://gist.github.com/gwerbin/39c21967f7cd6fad09b95e42e6779b67#file-pip-install I noticed that this might be a configuration problem in Scipy, not in Pip. The output suggests that it only supports Numpy in the build backend under PyPy 3.8, but not 3.7, so it tries to build a wheel from source and then rejects the wheel for being built with the wrong version. I'm not sure what to make of that. I can try with PyPy 7.3.7 3.8 to see if it works with that version (which is more likely what I'd want to use anyway). |
Hi @gwerbin, have you found a workaround by any chance? I'm having exactly same issue (the same os, python, pypy versions) |
Unfortunately no, since I was not really using this for any "serious work", so I dropped it. It might be a good idea to raise an issue on the Scipy issue tracker, in case it turns out to be a misconfiguration on their end and not in Pip, which is what I have started to suspect.. |
I don't think that is the case. The
And if you search the Gist linked above for that, it finds it. NumPy has a wheel: |
Ah wait, you're on macOS, that is why. So it will build from source, and that just fails (looking now at whether that is expected or not). |
There is nothing special SciPy is doing here, it's a wheel tag related issue as the original description says. So looks like either a
|
The tag |
Looks like this got fixed on numpy's end; and there's now a clearer error message in pip for this situation (see #10421) that clearly notes where the issue lies. |
Slightly OT. I was having a similar issue, but it was unrelated to the > python --version
Python 3.8.12 (9ef55f6fc369, Oct 25 2021, 05:10:01)
[PyPy 7.3.7 with GCC Apple LLVM 13.0.0 (clang-1300.0.29.3)] And the final output error was the same:
I first ran sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install This solved the issue. I hope this might help others that get here looking for a solution. |
Description
Under PyPy 7.3.7, Numpy can be built and installed from source with
pip install numpy
, but it fails to build when being used as a PEP 517 build dependency, with an assertion error about an unsupported tag('pp37', 'pypy37_pp73', 'macosx_10_7_x86_64')
.However, it does appear to work with the
--no-use-pep517
flag (at least, it proceeds beyond Numpy and fails anyway because Cython is not available).Expected behavior
I expected Numpy to work as a PEP 517 build dependency, because it works when I install it as a regular dependency
pip version
pip 21.3.1
Python version
PyPy 7.3.7 (3.7)
OS
MacOS 11.6.1
How to Reproduce
This works fine:
This does not:
But this works fine (until it hits the unrelated Cython error):
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: