mirror of
https://git.yoctoproject.org/poky
synced 2026-03-26 13:02:22 +01:00
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>
This commit is contained in:
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
|
||||
|
||||
SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
|
||||
|
||||
SRC_URI += "file://run-ptest"
|
||||
SRC_URI += "file://run-ptest.in"
|
||||
|
||||
inherit pypi python_flit_core ptest
|
||||
|
||||
@@ -15,6 +15,10 @@ BBCLASSEXTEND = "native nativesdk"
|
||||
DEPENDS:remove:class-native = "python3-build-native"
|
||||
RDEPENDS:${PN} += "python3-profile"
|
||||
|
||||
# https://github.com/pypa/packaging/issues/850
|
||||
SKIPLIST ?= ""
|
||||
SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py"
|
||||
|
||||
do_compile:class-native () {
|
||||
python_flit_core_do_manual_build
|
||||
}
|
||||
@@ -23,6 +27,8 @@ do_install_ptest() {
|
||||
cp -r ${S}/tests ${D}${PTEST_PATH}/
|
||||
# We don't need this script which is used to build the binaries
|
||||
rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh
|
||||
sed -e 's|IGNOREDTESTS|${SKIPLIST}|' ${UNPACKDIR}/run-ptest.in > ${D}${PTEST_PATH}/run-ptest
|
||||
chmod 0755 ${D}${PTEST_PATH}/run-ptest
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest = "\
|
||||
|
||||
Reference in New Issue
Block a user