[Buildroot] [PATCH] package/python-numpy: optionnaly depends on lapack not clapack
Romain Naour
romain.naour at smile.fr
Tue Jun 11 19:36:38 UTC 2019
python-numpy needs cblas which is only provided by lapack, otherwise
there is an exeption while importing numpy due to a missing symbol
cblas_sgemm.
python code:
import numpy as np
list = [1,2,3,4]
arr = np.array(list)
print (arr)
python Error:
ImportError: /usr/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-arm-linux-gnueabi.so: undefined symbol: cblas_sgemm
Signed-off-by: Romain Naour <romain.naour at smile.fr>
Cc: Asaf Kahlon <asafka7 at gmail.com>
Cc: Samuel Martin <s.martin49 at gmail.com>
Cc: Yegor Yefremov <yegorslists at googlemail.com>
---
package/python-numpy/python-numpy.mk | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk
index 5d2fbfc7ad..5086d783db 100644
--- a/package/python-numpy/python-numpy.mk
+++ b/package/python-numpy/python-numpy.mk
@@ -15,9 +15,9 @@ PYTHON_NUMPY_LICENSE_FILES = LICENSE.txt doc/sphinxext/LICENSE.txt \
numpy/core/src/multiarray/dragon4.c
PYTHON_NUMPY_SETUP_TYPE = setuptools
-ifeq ($(BR2_PACKAGE_CLAPACK),y)
-PYTHON_NUMPY_DEPENDENCIES += clapack
-PYTHON_NUMPY_SITE_CFG_LIBS += blas lapack
+ifeq ($(BR2_PACKAGE_LAPACK),y)
+PYTHON_NUMPY_DEPENDENCIES += lapack
+PYTHON_NUMPY_SITE_CFG_LIBS += blas cblas lapack
else
PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
endif
--
2.20.1
More information about the buildroot
mailing list