Skip to content

PyPy 7.3.7 & MacOS 11.x: Numpy fails to build, but only as a build dependency when --use-pep517 is active. #10631

Closed
@gwerbin

Description

@gwerbin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    project: pypyPyPy specifictype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions