summaryrefslogtreecommitdiffstats
path: root/package/python-numpy
diff options
context:
space:
mode:
Diffstat (limited to 'package/python-numpy')
-rw-r--r--package/python-numpy/Config.in13
-rw-r--r--package/python-numpy/python-numpy.mk28
2 files changed, 41 insertions, 0 deletions
diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in
new file mode 100644
index 0000000000..169b91fb42
--- /dev/null
+++ b/package/python-numpy/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_NUMPY
+ bool "python-numpy"
+ # numpy needs fenv.h. Available for all architectures in
+ # glibc, but only for x86 and x86-64 in uClibc.
+ depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_i386 || BR2_x86_64
+ help
+ NumPy is the fundamental package for scientific computing
+ with Python.
+
+ Note that NumPy needs fenv.h fully supported by the
+ C library.
+
+ http://www.numpy.org/
diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk
new file mode 100644
index 0000000000..e309ef6afa
--- /dev/null
+++ b/package/python-numpy/python-numpy.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# python-numpy
+#
+################################################################################
+
+PYTHON_NUMPY_VERSION = 1.8.0
+PYTHON_NUMPY_SOURCE = numpy-$(PYTHON_NUMPY_VERSION).tar.gz
+PYTHON_NUMPY_SITE = http://downloads.sourceforge.net/numpy
+PYTHON_NUMPY_LICENSE = BSD-3c
+PYTHON_NUMPY_LICENSE_FILES = LICENSE.txt
+PYTHON_NUMPY_SETUP_TYPE = distutils
+
+PYTHON_NUMPY_BUILD_OPT = --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 =" >> $(@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))
OpenPOWER on IntegriCloud