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