Issue 1:
Describe your issue.

I have installed blas-devel, lapack-devel, but the error still occur

cmd:

yum install blas-devel lapack-devel

pip install scipy

env:

centos 7

gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)

python 3.8.2

scipy-1.10.0

Reproducing Code Example

pip install scipy

Error message

Installing backend dependencies ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /home/works/my-env/bin/python3 /home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_
wheel /tmp/tmp7j_n5vof
cwd: /tmp/pip-install-5iyaqz7q/scipy
Complete output (76 lines):
The Meson build system
Version: 1.0.0
Source dir: /tmp/pip-install-5iyaqz7q/scipy
Build dir: /tmp/pip-install-5iyaqz7q/scipy/.mesonpy-yklj6rqy/build
Build type: native build
Project name: SciPy
Project version: 1.10.0
C compiler for the host machine: cc (gcc 8.3.1 "cc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)")
C linker for the host machine: cc ld.bfd 2.30-55
C++ compiler for the host machine: c++ (gcc 8.3.1 "c++ (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)")
C++ linker for the host machine: c++ ld.bfd 2.30-55
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
Library m found: YES
Fortran compiler for the host machine: gfortran (gcc 8.3.1 "GNU Fortran (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)")
Fortran linker for the host machine: gfortran ld.bfd 2.30-55
Compiler for Fortran supports arguments -Wno-conversion: YES
Checking if "-Wl,--version-script" : links: YES
Program cython found: YES (/tmp/pip-build-env-huluvywi/overlay/bin/cython)
Program python found: YES (/home/works/my-env/bin/python3)
Found pkg-config: /usr/bin/pkg-config (0.27.1)
Program pythran found: YES (/tmp/pip-build-env-huluvywi/overlay/bin/pythran)
Run-time dependency threads found: YES
Library npymath found: YES
Library npyrandom found: YES
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency openblas found: NO (tried pkgconfig and cmake)
Run-time dependency openblas found: NO (tried pkgconfig)

../../scipy/meson.build:134:0: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig

A full log can be found at /tmp/pip-install-5iyaqz7q/scipy/.mesonpy-yklj6rqy/build/meson-logs/meson-log.txt
+ meson setup --prefix=/usr/local/python3.8.2 /tmp/pip-install-5iyaqz7q/scipy /tmp/pip-install-5iyaqz7q/scipy/.mesonpy-yklj6rqy/build --native-file=/
tmp/pip-install-5iyaqz7q/scipy/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
Traceback (most recent call last):
File "/home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 64, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'mesonpy' has no attribute 'prepare_metadata_for_build_wheel'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
main()
File "/home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 66, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 95, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 1060, in build_wheel
with _project(config_settings) as project:
File "/usr/local/python3.8.2/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 975, in _project
with Project.with_temp_working_dir(
File "/usr/local/python3.8.2/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 750, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir, meson_args)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 632, in __init__
self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 680, in _configure
self._meson('setup', *setup_args)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 657, in _meson
return self._proc('meson', *args)
File "/tmp/pip-build-env-huluvywi/overlay/lib/python3.8/site-packages/mesonpy/__init__.py", line 652, in _proc
subprocess.check_call(list(args), env=self._env)
File "/usr/local/python3.8.2/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['meson', 'setup', '--prefix=/usr/local/python3.8.2', '/tmp/pip-install-5iyaqz7q/scipy', '/tmp/pip-install-5i
yaqz7q/scipy/.mesonpy-yklj6rqy/build', '--native-file=/tmp/pip-install-5iyaqz7q/scipy/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2']' re
turned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/works/my-env/bin/python3 /home/works/my-env/lib/python3.8/site-packages/pip/_vendor/pep517/_in_proce
ss.py prepare_metadata_for_build_wheel /tmp/tmp7j_n5vof Check the logs for full command output.

SciPy/NumPy/Python version information

1.10.0

Issue 2:
Describe your issue.

This comes from SymPy CI: sympy/sympy#23513

A few days ago it successfully built and tested NumPy and SciPy on Python 3.11b1 from git using pip but now the same setup fails to build SciPy with

../../scipy/meson.build:120:0: ERROR: Dependency "openblas" not found, tried pkgconfig and cmake

Maybe this would work with apt install libopenblas-dev liblapack-dev but it was working before so should it be expected to work still?

This was the last successful run (the build was successful although a test later failed):

https://github.com/sympy/sympy/runs/6598088659?check_suite_focus=true

Reproducing Code Example

# Ubuntu 20.04.4 with Python 3.11b1 running in GA
sudo apt install antlr4 libgfortran5 gfortran libmpfr-dev libmpc-dev
pip install --upgrade pip wheel
pip install git+https://github.com/cython/cython@master
pip install git+https://github.com/numpy/numpy@main
pip install git+https://github.com/scipy/scipy@main

Error message

Run pip install git+https://github.com/numpy/numpy@main
pip install git+https://github.com/numpy/numpy@main
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.11.0-beta.1/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib
Collecting git+https://github.com/numpy/numpy@main
Cloning https://github.com/numpy/numpy (to revision main) to /tmp/pip-req-build-a992dsfx
Running command git clone --filter=blob:none --quiet https://github.com/numpy/numpy /tmp/pip-req-build-a992dsfx
Resolved https://github.com/numpy/numpy to commit 68f3a12f4cc9310a7d60f9878af72cf98e7233f3
Running command git submodule update --init --recursive -q
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'
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): still running...
Building wheel for numpy (pyproject.toml): still running...
Building wheel for numpy (pyproject.toml): still running...
Building wheel for numpy (pyproject.toml): still running...
Building wheel for numpy (pyproject.toml): finished with status 'done'
Created wheel for numpy: filename=numpy-1.24.0.dev0+75.g68f3a12f4-cp311-cp311-linux_x86_64.whl size=22029574 sha256=ed58cdbe5b547632f5a45e8ab48e0c200b8f247a91e8e945c457a7899185724a
Stored in directory: /tmp/pip-ephem-wheel-cache-jo9owv4z/wheels/ad/e8/55/3b4372ddf4700df1fb35dc513aacd83756396e870c5a6f8ece
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy-1.24.0.dev0+75.g68f3a12f4

Run pip install git+https://github.com/scipy/scipy@main
Collecting git+https://github.com/scipy/scipy@main
Cloning https://github.com/scipy/scipy (to revision main) to /tmp/pip-req-build-b76e9_br
Running command git clone --filter=blob:none --quiet https://github.com/scipy/scipy /tmp/pip-req-build-b76e9_br
Resolved https://github.com/scipy/scipy to commit 6c51ed7aa4230d9fc08d099773b66f61e9828e97
Running command git submodule update --init --recursive -q
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
The Meson build system
Version: 0.62.1
Source dir: /tmp/pip-req-build-b76e9_br
Build dir: /tmp/pip-req-build-b76e9_br/.mesonpy-_wsc8qd3/build
Build type: native build
Project name: SciPy
Project version: 1.9.0.dev0
C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C linker for the host machine: cc ld.bfd 2.34
C++ compiler for the host machine: c++ (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Library m found: YES
Fortran compiler for the host machine: gfortran (gcc 9.4.0 "GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
Fortran linker for the host machine: gfortran ld.bfd 2.34
Program cython found: YES (/tmp/pip-build-env-4bh3e24n/overlay/bin/cython)
Program pythran found: YES (/tmp/pip-build-env-4bh3e24n/overlay/bin/pythran)
Program cp found: YES (/usr/bin/cp)
Program python3 found: YES (/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/bin/python)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Library npymath found: YES
Library npyrandom found: YES
Found CMake: /usr/local/bin/cmake (3.23.1)
Run-time dependency openblas found: NO (tried pkgconfig and cmake)

../../scipy/meson.build:120:0: ERROR: Dependency "openblas" not found, tried pkgconfig and cmake

A full log can be found at /tmp/pip-req-build-b76e9_br/.mesonpy-_wsc8qd3/build/meson-logs/meson-log.txt
+ meson setup --native-file=/tmp/pip-req-build-b76e9_br/.mesonpy-native-file.ini -Ddebug=false -Dstrip=true -Doptimization=2 --prefix=/opt/hostedtoolcache/Python/3.11.0-beta.1/x64 /tmp/pip-req-build-b76e9_br /tmp/pip-req-build-b76e9_br/.mesonpy-_wsc8qd3/build
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
^^^^^^
File "/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 805, in get_requires_for_build_wheel
with _project(config_settings) as project:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 784, in _project
with Project.with_temp_working_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 479, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 423, in __init__
self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 450, in _configure
self._meson(
^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 438, in _meson
return self._proc('meson', *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4bh3e24n/overlay/lib/python3.11/site-packages/mesonpy/__init__.py", line 434, in _proc
subprocess.check_call(list(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.0-beta.1/x64/lib/python3.11/subprocess.py", line 402, in check_call
raise CalledProcessError(retcode, cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=/tmp/pip-req-build-b76e9_br/.mesonpy-native-file.ini', '-Ddebug=false', '-Dstrip=true', '-Doptimization=2', '--prefix=/opt/hostedtoolcache/Python/3.11.0-beta.1/x64', '/tmp/pip-req-build-b76e9_br', '/tmp/pip-req-build-b76e9_br/.mesonpy-_wsc8qd3/build']' returned non-zero exit status 1.
[end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Error: Process completed with exit code 1.

SciPy/NumPy/Python version information

scipy/numpy from git and python 3.11b1