Closed
Description
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
/usr/local/bin/pypy3 --version
# Python 3.7.12 (44db26267d0a38e51a7e8490983ed7e7bcb84b74, Oct 28 2021, 05:11:03)
# [PyPy 7.3.7 with GCC Apple LLVM 13.0.0 (clang-1300.0.29.3)]
/usr/local/bin/pypy3 -m venv ./my-project
./my-project/bin/python -m pip install -U pip setuptools wheel
This works fine:
./my-project/bin/python -m pip install numpy
This does not:
./my-project/bin/python -m pip install -U scipy
But this works fine (until it hits the unrelated Cython error):
./my-project/bin/python -m pip install --no-use-pep517 -U scipy
Output
< ... huge build log and traceback ... >
AssertionError: would build wheel with unsupported tag ('pp37', 'pypy37_pp73', 'macosx_10_7_x86_64')
----------------------------------------
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
----------------------------------------
Code of Conduct
- I agree to follow the PSF Code of Conduct.