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.

50 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.0
  9. PKG_RELEASE:=1
  10. PYPI_NAME:=$(PKG_NAME)
  11. PKG_HASH:=76766cc80d6128750075378d3bb7812cf146415bd29b588616f72c943c00d598
  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. PKG_BUILD_PARALLEL:=0
  19. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="Cython==0.29.20"
  20. include ../pypi.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. include ../python3-package.mk
  23. define Package/python3-numpy
  24. SUBMENU:=Python
  25. SECTION:=lang
  26. CATEGORY:=Languages
  27. TITLE:=The fundamental package for scientific computing with Python
  28. URL:=https://www.numpy.org/
  29. DEPENDS:=@!SOFT_FLOAT +INSTALL_GFORTRAN:libgfortran +python3
  30. endef
  31. define Package/python3-numpy/description
  32. NumPy is the fundamental package for array computing with Python.
  33. By default, this package is built without some modules.
  34. For some modules to be available, the INSTALL_GFORTRAN symbol needs
  35. to be enabled in the OpenWrt core/toolchain.
  36. endef
  37. $(eval $(call Py3Package,python3-numpy))
  38. $(eval $(call BuildPackage,python3-numpy))
  39. $(eval $(call BuildPackage,python3-numpy-src))