76815cd1e5
If BR2_PACKAGE_LAPACK is enabled (without BR2_PACKAGE_CLAPACK), build of python-numpy will fail if lapack is built before python-numpy because lapack does not provide blas library So disable BLAS and LAPACK through PYTHON_NUMPTY_ENV if BR2_PACKAGE_CLAPACK is not set Fixes: - http://autobuild.buildroot.org/results/41671976c7be7883f31ee5f51ca0eb90b81262fd Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# python-numpy
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_NUMPY_VERSION = 1.15.1
|
|
PYTHON_NUMPY_SOURCE = numpy-$(PYTHON_NUMPY_VERSION).tar.gz
|
|
PYTHON_NUMPY_SITE = https://github.com/numpy/numpy/releases/download/v$(PYTHON_NUMPY_VERSION)
|
|
PYTHON_NUMPY_LICENSE = BSD-3-Clause
|
|
PYTHON_NUMPY_LICENSE_FILES = LICENSE.txt
|
|
PYTHON_NUMPY_SETUP_TYPE = setuptools
|
|
|
|
ifeq ($(BR2_PACKAGE_CLAPACK),y)
|
|
PYTHON_NUMPY_DEPENDENCIES += clapack
|
|
PYTHON_NUMPY_SITE_CFG_LIBS += blas lapack
|
|
else
|
|
PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
|
|
endif
|
|
|
|
PYTHON_NUMPY_BUILD_OPTS = --fcompiler=None
|
|
|
|
define PYTHON_NUMPY_CONFIGURE_CMDS
|
|
-rm -f $(@D)/site.cfg
|
|
echo "[DEFAULT]" >> $(@D)/site.cfg
|
|
echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
|
|
echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
|
|
echo "libraries =" $(subst $(space),$(comma),$(PYTHON_NUMPY_SITE_CFG_LIBS)) >> $(@D)/site.cfg
|
|
endef
|
|
|
|
# Some package may include few headers from NumPy, so let's install it
|
|
# in the staging area.
|
|
PYTHON_NUMPY_INSTALL_STAGING = YES
|
|
|
|
$(eval $(python-package))
|
|
$(eval $(host-python-package))
|