Replace the deprecated setuptools3 bbclass with python_mesonpy.
The build-backend has been defined as "mesonpy" since:
https://github.com/numpy/numpy/commit/942fb8caf33a65e449fbf198ecf1cd39be953248
The vendored meson-python was dropped in:
https://github.com/numpy/numpy/commit/6544e33ac7a3a600c2fb565401c811a17ecdb3d5
While we are at it:
* Drop ${PYTHON_PN} and use python3 instead
* Sort RDEPENDS alphabetically
The ptests run, but we still have issues with sufficient memory and
free disk space (the reason python3-numpy is in PTEST_PROBLEMS).
Signed-off-by: Tim Orling
---
.../python/python3-numpy_1.26.4.bb| 54 ++-
1 file changed, 28 insertions(+), 26 deletions(-)
diff --git a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
index d11b03efc3d..402d74db72d 100644
--- a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
+++ b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
@@ -20,7 +20,7 @@ UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P\d+(\.\d+)+)$"
DEPENDS += "python3-cython-native"
-inherit ptest setuptools3 github-releases
+inherit ptest python_mesonpy github-releases
S = "${WORKDIR}/numpy-${PV}"
@@ -33,32 +33,34 @@ do_compile:prepend() {
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a
${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a"
# install what is needed for numpy.test()
-RDEPENDS:${PN} = "${PYTHON_PN}-unittest \
- ${PYTHON_PN}-difflib \
- ${PYTHON_PN}-pprint \
- ${PYTHON_PN}-pickle \
- ${PYTHON_PN}-shell \
- ${PYTHON_PN}-doctest \
- ${PYTHON_PN}-datetime \
- ${PYTHON_PN}-misc \
- ${PYTHON_PN}-mmap \
- ${PYTHON_PN}-netclient \
- ${PYTHON_PN}-numbers \
- ${PYTHON_PN}-pydoc \
- ${PYTHON_PN}-pkgutil \
- ${PYTHON_PN}-email \
- ${PYTHON_PN}-compression \
- ${PYTHON_PN}-ctypes \
- ${PYTHON_PN}-threading \
- ${PYTHON_PN}-multiprocessing \
- ${PYTHON_PN}-json \
+RDEPENDS:${PN} = "\
+python3-compression \
+python3-ctypes \
+python3-datetime \
+python3-difflib \
+python3-doctest \
+python3-email \
+python3-json \
+python3-misc \
+python3-mmap \
+python3-multiprocessing \
+python3-netclient \
+python3-numbers \
+python3-pickle \
+python3-pkgutil \
+python3-pprint \
+python3-pydoc \
+python3-shell \
+python3-threading \
+python3-unittest \
"
-RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest \
- ${PYTHON_PN}-hypothesis \
- ${PYTHON_PN}-sortedcontainers \
- ${PYTHON_PN}-resource \
- ${PYTHON_PN}-typing-extensions \
- ldd \
+RDEPENDS:${PN}-ptest += "\
+ldd \
+python3-hypothesis \
+python3-pytest \
+python3-resource \
+python3-sortedcontainers \
+python3-typing-extensions \
"
BBCLASSEXTEND = "native nativesdk"
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#195894):
https://lists.openembedded.org/g/openembedded-core/message/195894
Mute This Topic: https://lists.openembedded.org/mt/104451074/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-