python3-numpy_2.2.5.bb 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. SUMMARY = "A sophisticated Numeric Processing Package for Python"
  2. HOMEPAGE = "https://numpy.org/"
  3. DESCRIPTION = "NumPy is the fundamental package needed for scientific computing with Python."
  4. SECTION = "devel/python"
  5. LICENSE = "BSD-3-Clause & BSD-2-Clause & PSF-2.0 & Apache-2.0 & MIT"
  6. LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1de863c37a83e71b1e97b64d036ea78b"
  7. SRCNAME = "numpy"
  8. SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${SRCNAME}-${PV}.tar.gz \
  9. file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
  10. file://fix_reproducibility.patch \
  11. file://run-ptest \
  12. "
  13. SRC_URI[sha256sum] = "a9c0d994680cd991b1cb772e8b297340085466a6fe964bc9d4e80f5e2f43c291"
  14. GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases"
  15. UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$"
  16. inherit pkgconfig ptest python_mesonpy github-releases cython
  17. S = "${WORKDIR}/numpy-${PV}"
  18. PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true"
  19. # Remove references to buildpaths from numpy's __config__.py
  20. do_install:append() {
  21. sed -i \
  22. -e 's|${S}=||g' \
  23. -e 's|${B}=||g' \
  24. -e 's|${RECIPE_SYSROOT_NATIVE}=||g' \
  25. -e 's|${RECIPE_SYSROOT_NATIVE}||g' \
  26. -e 's|${RECIPE_SYSROOT}=||g' \
  27. -e 's|${RECIPE_SYSROOT}||g' ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
  28. nativepython3 -mcompileall -s ${D} ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
  29. }
  30. FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/_core/lib/*.a \
  31. ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a \
  32. "
  33. # install what is needed for numpy.test()
  34. RDEPENDS:${PN} = "\
  35. python3-compression \
  36. python3-ctypes \
  37. python3-datetime \
  38. python3-difflib \
  39. python3-doctest \
  40. python3-email \
  41. python3-json \
  42. python3-misc \
  43. python3-mmap \
  44. python3-multiprocessing \
  45. python3-netclient \
  46. python3-numbers \
  47. python3-pickle \
  48. python3-pkgutil \
  49. python3-pprint \
  50. python3-pydoc \
  51. python3-shell \
  52. python3-threading \
  53. python3-unittest \
  54. "
  55. RDEPENDS:${PN}-ptest += "\
  56. ldd \
  57. meson \
  58. python3-hypothesis \
  59. python3-pytest \
  60. python3-resource \
  61. python3-sortedcontainers \
  62. python3-typing-extensions \
  63. python3-unittest-automake-output \
  64. "
  65. BBCLASSEXTEND = "native nativesdk"