mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
python3-packaging: enable ptest
(From OE-Core rev: df1e2e5bbf675f2b2582179fe28b25b840bb4790) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bd21b9e878
commit
d4c0282f2b
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
|
||||
|
||||
SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
|
||||
|
||||
inherit pypi python_flit_core
|
||||
SRC_URI += "file://run-ptest"
|
||||
|
||||
inherit pypi python_flit_core ptest
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -16,3 +18,20 @@ RDEPENDS:${PN} += "python3-profile"
|
||||
do_compile:class-native () {
|
||||
python_flit_core_do_manual_build
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest = "\
|
||||
python3-ctypes \
|
||||
python3-pretend \
|
||||
python3-pytest \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
# The ptest package contains prebuilt test binaries
|
||||
INSANE_SKIP:${PN} = "already-stripped"
|
||||
INSANE_SKIP:${PN}-ptest = "arch"
|
||||
|
||||
Reference in New Issue
Block a user