1 ################################################################################
5 ################################################################################
7 PYTHON_NUMPY_VERSION
= 1.8.0
8 PYTHON_NUMPY_SOURCE
= numpy-
$(PYTHON_NUMPY_VERSION
).
tar.gz
9 PYTHON_NUMPY_SITE
= http
://downloads.sourceforge.net
/numpy
10 PYTHON_NUMPY_LICENSE
= BSD-3c
11 PYTHON_NUMPY_LICENSE_FILES
= LICENSE.txt
12 PYTHON_NUMPY_SETUP_TYPE
= distutils
14 ifeq ($(BR2_PACKAGE_CLAPACK
),y
)
15 PYTHON_NUMPY_DEPENDENCIES
+= clapack
16 PYTHON_NUMPY_SITE_CFG_LIBS
+= blas lapack
19 PYTHON_NUMPY_BUILD_OPTS
= --fcompiler
=None
21 define PYTHON_NUMPY_CONFIGURE_CMDS
23 echo
"[DEFAULT]" >> $(@D
)/site.cfg
24 echo
"library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D
)/site.cfg
25 echo
"include_dirs = $(STAGING_DIR)/usr/include" >> $(@D
)/site.cfg
26 echo
"libraries =" $(subst $(space
),$(comma
),$(PYTHON_NUMPY_SITE_CFG_LIBS
)) >> $(@D
)/site.cfg
29 # Some package may include few headers from NumPy, so let's install it
30 # in the staging area.
31 PYTHON_NUMPY_INSTALL_STAGING
= YES
33 $(eval
$(python-package
))