diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2025-06-30 17:13:09 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-07 22:12:50 +0100 |
| commit | a582230cf97e380e71aecc0935a49f83e5ab0fbe (patch) | |
| tree | 8bdd428523165e8cd39eb177e43dc7a66db4a13c /meta/recipes-devtools/python/python3-numpy_2.3.1.bb | |
| parent | 21cdff400c9ac9ada2744acd76f206751fc45e1f (diff) | |
| download | poky-a582230cf97e380e71aecc0935a49f83e5ab0fbe.tar.gz | |
python3-numpy: upgrade 2.3.0 -> 2.3.1
(From OE-Core rev: 3d708d283303aec17785e56d03e7e8884fb9c061)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-numpy_2.3.1.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-numpy_2.3.1.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy_2.3.1.bb b/meta/recipes-devtools/python/python3-numpy_2.3.1.bb new file mode 100644 index 0000000000..bc718d37c4 --- /dev/null +++ b/meta/recipes-devtools/python/python3-numpy_2.3.1.bb | |||
| @@ -0,0 +1,76 @@ | |||
| 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=26080bf81b2662c7119d3ef28ae197fd" | ||
| 7 | |||
| 8 | SRCNAME = "numpy" | ||
| 9 | |||
| 10 | SRC_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://fix_reproducibility.patch \ | ||
| 13 | file://run-ptest \ | ||
| 14 | " | ||
| 15 | SRC_URI[sha256sum] = "1ec9ae20a4226da374362cca3c62cd753faf2f951440b0e3b98e93c235441d2b" | ||
| 16 | |||
| 17 | GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases" | ||
| 18 | UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$" | ||
| 19 | |||
| 20 | inherit pkgconfig ptest python_mesonpy github-releases cython | ||
| 21 | |||
| 22 | S = "${UNPACKDIR}/numpy-${PV}" | ||
| 23 | |||
| 24 | PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true" | ||
| 25 | |||
| 26 | # Remove references to buildpaths from numpy's __config__.py | ||
| 27 | do_install:append() { | ||
| 28 | sed -i \ | ||
| 29 | -e 's|${S}=||g' \ | ||
| 30 | -e 's|${B}=||g' \ | ||
| 31 | -e 's|${RECIPE_SYSROOT_NATIVE}=||g' \ | ||
| 32 | -e 's|${RECIPE_SYSROOT_NATIVE}||g' \ | ||
| 33 | -e 's|${RECIPE_SYSROOT}=||g' \ | ||
| 34 | -e 's|${RECIPE_SYSROOT}||g' ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py | ||
| 35 | |||
| 36 | nativepython3 -mcompileall -s ${D} ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py | ||
| 37 | } | ||
| 38 | |||
| 39 | FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/_core/lib/*.a \ | ||
| 40 | ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a \ | ||
| 41 | " | ||
| 42 | |||
| 43 | # install what is needed for numpy.test() | ||
| 44 | RDEPENDS:${PN} = "\ | ||
| 45 | python3-compression \ | ||
| 46 | python3-ctypes \ | ||
| 47 | python3-datetime \ | ||
| 48 | python3-difflib \ | ||
| 49 | python3-doctest \ | ||
| 50 | python3-email \ | ||
| 51 | python3-json \ | ||
| 52 | python3-misc \ | ||
| 53 | python3-mmap \ | ||
| 54 | python3-multiprocessing \ | ||
| 55 | python3-netclient \ | ||
| 56 | python3-numbers \ | ||
| 57 | python3-pickle \ | ||
| 58 | python3-pkgutil \ | ||
| 59 | python3-pprint \ | ||
| 60 | python3-pydoc \ | ||
| 61 | python3-shell \ | ||
| 62 | python3-threading \ | ||
| 63 | python3-unittest \ | ||
| 64 | " | ||
| 65 | RDEPENDS:${PN}-ptest += "\ | ||
| 66 | ldd \ | ||
| 67 | meson \ | ||
| 68 | python3-hypothesis \ | ||
| 69 | python3-pytest \ | ||
| 70 | python3-resource \ | ||
| 71 | python3-sortedcontainers \ | ||
| 72 | python3-typing-extensions \ | ||
| 73 | python3-unittest-automake-output \ | ||
| 74 | " | ||
| 75 | |||
| 76 | BBCLASSEXTEND = "native nativesdk" | ||
