You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

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