Deprecated since version 1.20: The native libraries on
macOS, provided by Accelerate, are not fit for use in NumPy
since they have bugs that cause wrong output under
easily reproducible conditions.
[1]
Building NumPy from source with default options of deps_builder
causes it to link against Accelerate framework which is buggy and
raises a warning mentioned in [2].
So either we build OpenBLAS in deps also and set appropriate
env variables [3] suggested in [1]. Or download NumPy from pip
and never allow it to build it from source while installing.
A nice side effect of making this change is that find_package(Python3...)
can be used instead of hardcoding version/paths etc in platform_apple.cmake
[1] https://numpy.org/doc/stable/user/building.html#disabling-atlas-and-other-accelerated-libraries
[2] https://github.com/numpy/numpy/issues/15947
[3] https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/numpy.rb