Issue 1:
Describe your issue.

Installing scipy==1.8.0 fails on MacOS M1 with python3.9, because the build requires numpy 1.20.0 that doesn't build on M1 (https://github.com/scipy/scipy/blob/v1.8.0/pyproject.toml#L30)

Can someone please update this is make it really a minimum requirement to use 1.20.0 and not a hard requirement? So have numpy >= 1.20.0 and not numpy == 1.20.0. Even better would be 1.20.3, which does install on M1. At the moment, no matter if I pre-install the latest version of numpy, the install for scipy fails, because it is trying to get numpy==1.20.0 to be installed.

Reproducing Code Example

pip install scipy

Error message

Collecting scipy==1.8.0
Using cached scipy-1.8.0.tar.gz (38.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [2270 lines of output]
Looking in indexes: https://pypi.org/simple, https://artefact.skao.int/repository/pypi-internal/simple
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "s390x" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_machine != "s390x" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.9" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version == "3.10" and platform_python_implementation != "PyPy"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.11"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_python_implementation == "PyPy"' don't match your environment
Collecting wheel<0.38.0
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting setuptools<60.0.0
Using cached setuptools-59.8.0-py3-none-any.whl (952 kB)
Collecting Cython<3.0,>=0.29.18
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting pybind11<2.9.0,>=2.4.3
Using cached pybind11-2.8.1-py2.py3-none-any.whl (208 kB)
Collecting pythran<0.11.0,>=0.10.0
Using cached pythran-0.10.0-py3-none-any.whl (4.3 MB)
Collecting numpy==1.20.0
Using cached numpy-1.20.0.zip (8.0 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting gast~=0.5.0
Using cached gast-0.5.3-py3-none-any.whl (19 kB)
Collecting ply>=3.4
Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Collecting beniget~=0.4.0
Using cached beniget-0.4.1-py3-none-any.whl (9.4 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [2223 lines of output]

[... the error is very long but not really relevant for scipy ...]

assert len(base_version) == 2
AssertionError

########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: aarch64
Compiler : clang

CPU baseline :
Requested : 'min'
Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD
Flags : none
Extra checks: none

CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : ASIMDHP ASIMDDP
Generated :
:
ASIMDHP : NEON NEON_FP16 NEON_VFPV4 ASIMD
Flags : -march=armv8.2-a+fp16
Extra checks: none
Detect : ASIMD ASIMDHP
: numpy/core/src/umath/_umath_tests.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/3n/68py6wjs1t7dqlglcvwgvrcr0000gp/T/pip-install-pfa3d0mq/numpy_b0c1897da5564dec984ac45053f20aa5/build/temp.macosx-11-arm64-3.9/ccompiler_opt_cache_ext.py

########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: aarch64
Compiler : clang

CPU baseline :
Requested : 'min'
Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD
Flags : none
Extra checks: none

CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : ASIMDHP ASIMDDP
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/3n/68py6wjs1t7dqlglcvwgvrcr0000gp/T/pip-install-pfa3d0mq/numpy_b0c1897da5564dec984ac45053f20aa5/build/temp.macosx-11-arm64-3.9/ccompiler_opt_cache_clib.py
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
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
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

SciPy/NumPy/Python version information

scipy 1.8.0, numpy 1.22.3, python 3.9.9

Issue 2:
I'm trying to use pip to install scipy (python 3.10.2 and two different commands as visible in the terminal output) and I get a litany of errors instead of it actually installing. I don't quite know what more information would be desired - I'm on Big Sur on a 2020 M1 if that helps.

Terminal Saved Output.txt