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.

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