Files
poky/meta/recipes-devtools/python/python3-packaging_24.1.bb
Ross Burton d4c0282f2b 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>
2024-07-26 12:28:42 +01:00

38 lines
1.0 KiB
BlitzBasic

SUMMARY = "Core utilities for Python packages"
HOMEPAGE = "https://github.com/pypa/packaging"
LICENSE = "Apache-2.0 | BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
SRC_URI += "file://run-ptest"
inherit pypi python_flit_core ptest
BBCLASSEXTEND = "native nativesdk"
# Bootstrap the native build
DEPENDS:remove:class-native = "python3-build-native"
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"