summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-numpy_1.26.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-09-26 16:24:48 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-28 12:37:46 +0100
commite22738d2c5829c7c35293da0a77b8dd90815ba67 (patch)
treefae883c1a9da5b229720874d22f02567f8a8808c /meta/recipes-devtools/python/python3-numpy_1.26.0.bb
parent68ead518d916f9e4a96c7c9c5df7a06af9faff0b (diff)
downloadpoky-e22738d2c5829c7c35293da0a77b8dd90815ba67.tar.gz
python3-numpy: upgrade 1.25.2 -> 1.26.0
License-Update: split license file in standard BSD 3-clause and bundled. Changelog: ========== Python 3.12.0 support. Cython 3.0.0 compatibility. Use of the Meson build system Updated SIMD support f2py fixes, meson and bind(x) support Support for the updated Accelerate BLAS/LAPACK library (From OE-Core rev: 7a8ff35670254579c6a68b77852503647e3dfad7) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-numpy_1.26.0.bb')
-rw-r--r--meta/recipes-devtools/python/python3-numpy_1.26.0.bb74
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy_1.26.0.bb b/meta/recipes-devtools/python/python3-numpy_1.26.0.bb
new file mode 100644
index 0000000000..e94e431209
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-numpy_1.26.0.bb
@@ -0,0 +1,74 @@
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=a752eb20459cf74a9d84ee4825e8317c"
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://disable_blas.patch \
14 file://run-ptest \
15 "
16SRC_URI[sha256sum] = "f93fc78fe8bf15afe2b8d6b6499f1c73953169fad1e9a8dd086cdff3190e7fdf"
17
18GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases"
19UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$"
20
21DEPENDS += "python3-cython-native"
22
23inherit ptest setuptools3 github-releases
24
25S = "${WORKDIR}/numpy-${PV}"
26
27CLEANBROKEN = "1"
28
29do_compile:prepend() {
30 export NPY_DISABLE_SVML=1
31}
32
33# Unfortunately the following pyc files are non-deterministc due to 'frozenset'
34# being written without strict ordering, even with PYTHONHASHSEED = 0
35# Upstream is discussing ways to solve the issue properly, until then let's
36# just not install the problematic files.
37# More info: http://benno.id.au/blog/2013/01/15/python-determinism
38do_install:append() {
39 rm ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/typing/tests/data/pass/__pycache__/literal.cpython*
40}
41
42FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a"
43
44# install what is needed for numpy.test()
45RDEPENDS:${PN} = "${PYTHON_PN}-unittest \
46 ${PYTHON_PN}-difflib \
47 ${PYTHON_PN}-pprint \
48 ${PYTHON_PN}-pickle \
49 ${PYTHON_PN}-shell \
50 ${PYTHON_PN}-doctest \
51 ${PYTHON_PN}-datetime \
52 ${PYTHON_PN}-distutils \
53 ${PYTHON_PN}-misc \
54 ${PYTHON_PN}-mmap \
55 ${PYTHON_PN}-netclient \
56 ${PYTHON_PN}-numbers \
57 ${PYTHON_PN}-pydoc \
58 ${PYTHON_PN}-pkgutil \
59 ${PYTHON_PN}-email \
60 ${PYTHON_PN}-compression \
61 ${PYTHON_PN}-ctypes \
62 ${PYTHON_PN}-threading \
63 ${PYTHON_PN}-multiprocessing \
64 ${PYTHON_PN}-json \
65"
66RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest \
67 ${PYTHON_PN}-hypothesis \
68 ${PYTHON_PN}-sortedcontainers \
69 ${PYTHON_PN}-resource \
70 ${PYTHON_PN}-typing-extensions \
71 ldd \
72"
73
74BBCLASSEXTEND = "native nativesdk"