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.4 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. # Note: make sure to periodically update the Cython version in HOST_PYTHON3_PACKAGE_BUILD_DEPENDS
  8. PKG_VERSION:=1.19.1
  9. PKG_RELEASE:=2
  10. PYPI_NAME:=$(PKG_NAME)
  11. PKG_HASH:=b8456987b637232602ceb4d663cb34106f7eb780e247d51a260b84760fd8f491
  12. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE.txt
  15. PKG_CPE_ID:=cpe:/a:numpy:numpy
  16. # yes, zip... sigh
  17. PYPI_SOURCE_EXT:=zip
  18. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:=Cython # Cython>=0.29.21
  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))