Merge pull request #12342 from PolynomialDivision/feature/add_dawn_node_exporter
[feed/packages.git] / lang / python / numpy / Makefile
1 #
2 # Copyright (C) 2019 Jakub Piotr Cłapa <jpc@loee.pl>
3 # Copyright (C) 2020 Alexandru Ardelean <ardeleanalex@gmail.com>
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=numpy
9 PKG_VERSION:=1.18.5
10 PKG_RELEASE:=1
11
12 PYPI_NAME:=$(PKG_NAME)
13 PKG_HASH:=34e96e9dae65c4839bd80012023aadd6ee2ccb73ce7fdf3074c62f301e63120b
14
15 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
16
17 PKG_LICENSE:=BSD-3-Clause
18 PKG_LICENSE_FILES:=LICENSE.txt
19 PKG_CPE_ID:=cpe:/a:numpy:numpy
20
21 # yes, zip... sigh
22 PYPI_SOURCE_EXT:=zip
23 HOST_PYTHON3_PACKAGE_BUILD_DEPENDS="Cython==0.29.19"
24
25 include ../pypi.mk
26 include $(INCLUDE_DIR)/package.mk
27 include ../python3-package.mk
28
29 define Package/python3-numpy
30 SUBMENU:=Python
31 SECTION:=lang
32 CATEGORY:=Languages
33 TITLE:=The fundamental package for scientific computing with Python
34 URL:=https://www.numpy.org/
35 DEPENDS:=@!SOFT_FLOAT +INSTALL_GFORTRAN:libgfortran +python3
36 endef
37
38 define Package/python3-numpy/description
39 NumPy is the fundamental package for array computing with Python.
40
41 By default, this package is built without some modules.
42 For some modules to be available, the INSTALL_GFORTRAN symbol needs
43 to be enabled in the OpenWrt core/toolchain.
44 endef
45
46 $(eval $(call Py3Package,python3-numpy))
47 $(eval $(call BuildPackage,python3-numpy))
48 $(eval $(call BuildPackage,python3-numpy-src))