summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-10-21 23:27:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-12 11:09:51 +0000
commit9d8042f045c927447b6bd6c2fb6892dfdebcaa24 (patch)
tree898c715928f53a30c5e57edc5a584773c9756d64 /meta/recipes-devtools
parent626031da74b31d0a8c5ca9d5a1acac9a2d55e998 (diff)
downloadpoky-9d8042f045c927447b6bd6c2fb6892dfdebcaa24.tar.gz
python3-packaging: Ignore old glibc tests on musl
These tests expect glibc to be the system C library ignore them for musl (From OE-Core rev: 8b5b18a65c3ac3a3b5f1eef462824ef27f36f223) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python3-packaging/run-ptest3
-rw-r--r--meta/recipes-devtools/python/python3-packaging/run-ptest.in2
-rw-r--r--meta/recipes-devtools/python/python3-packaging_24.1.bb8
3 files changed, 9 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python3-packaging/run-ptest b/meta/recipes-devtools/python/python3-packaging/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta/recipes-devtools/python/python3-packaging/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta/recipes-devtools/python/python3-packaging/run-ptest.in b/meta/recipes-devtools/python/python3-packaging/run-ptest.in
new file mode 100644
index 0000000000..508538463b
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-packaging/run-ptest.in
@@ -0,0 +1,2 @@
1#!/bin/sh
2pytest --automake IGNOREDTESTS
diff --git a/meta/recipes-devtools/python/python3-packaging_24.1.bb b/meta/recipes-devtools/python/python3-packaging_24.1.bb
index 20bcd55fba..0aac283389 100644
--- a/meta/recipes-devtools/python/python3-packaging_24.1.bb
+++ b/meta/recipes-devtools/python/python3-packaging_24.1.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
5 5
6SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" 6SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
7 7
8SRC_URI += "file://run-ptest" 8SRC_URI += "file://run-ptest.in"
9 9
10inherit pypi python_flit_core ptest 10inherit pypi python_flit_core ptest
11 11
@@ -15,6 +15,10 @@ BBCLASSEXTEND = "native nativesdk"
15DEPENDS:remove:class-native = "python3-build-native" 15DEPENDS:remove:class-native = "python3-build-native"
16RDEPENDS:${PN} += "python3-profile" 16RDEPENDS:${PN} += "python3-profile"
17 17
18# https://github.com/pypa/packaging/issues/850
19SKIPLIST ?= ""
20SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py"
21
18do_compile:class-native () { 22do_compile:class-native () {
19 python_flit_core_do_manual_build 23 python_flit_core_do_manual_build
20} 24}
@@ -23,6 +27,8 @@ do_install_ptest() {
23 cp -r ${S}/tests ${D}${PTEST_PATH}/ 27 cp -r ${S}/tests ${D}${PTEST_PATH}/
24 # We don't need this script which is used to build the binaries 28 # We don't need this script which is used to build the binaries
25 rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh 29 rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh
30 sed -e 's|IGNOREDTESTS|${SKIPLIST}|' ${UNPACKDIR}/run-ptest.in > ${D}${PTEST_PATH}/run-ptest
31 chmod 0755 ${D}${PTEST_PATH}/run-ptest
26} 32}
27 33
28RDEPENDS:${PN}-ptest = "\ 34RDEPENDS:${PN}-ptest = "\