Blender Git Loki

Git Commits -> Revision 7baf796

Revision 7baf796 by Ankit Meel (master)
February 15, 2021, 19:17 (GMT)
macOS Deps: NumPy: Remove buggy Accelerate framework

Building NumPy from source with default options of builder
causes it to link against Accelerate framework which is buggy and
raises a warning mentioned in [2].
"RankWarning: Polyfit may be poorly conditioned"
Accelerate is deprecated with NumPy 1.20+.[1]

So either we build OpenBLAS in dependencies also and set appropriate
env variables suggested in [1] while building NumPy for it to find
OpenBLAS. Or download NumPy wheel from pip and never allow pip to
build NumPy from source while installing.

After this change, pip wheels are used for NumPy for macOS with x86_64.

[1] https://numpy.org/doc/stable/user/building.html#lapack
[2] https://github.com/numpy/numpy/issues/15947
Reviewed By: #platform_macos, sebbas
Differential Revision: https://developer.blender.org/D10368

Commit Details:

Full Hash: 7baf796886b26e638c87c8c6533b7dc6e9b3803c
Parent Commit: 35145db
Lines Changed: +15, -1

2 Modified Paths:

/build_files/build_environment/cmake/python_site_packages.cmake (+9, -0) (Diff)
/build_files/build_environment/CMakeLists.txt (+6, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021