mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 10:13:03 +01:00
python3-license-expression: fix ptest installation
This recipe was overriding do_install_ptest which is provided by the ptest-python-pytest class, so there was no tests or run-ptest installed. Use an append override, and minimise the installed files: use a symlink so that scancode-licensedb-index.json is found and install setup.cfg. (From OE-Core rev: 164876d33af9edaac37a686726727d3bc3d10aa9) 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
7b9c7d80c0
commit
837d41f078
@@ -22,8 +22,9 @@ RDEPENDS:${PN} += "\
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
do_install_ptest() {
|
||||
do_install_ptest:append() {
|
||||
# The tests need some files from the source tree
|
||||
install -d ${D}${PTEST_PATH}/src
|
||||
cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/
|
||||
cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/
|
||||
ln -s ${PYTHON_SITEPACKAGES_DIR}/license_expression/ ${D}${PTEST_PATH}/src/
|
||||
install -m644 ${S}/setup.cfg ${D}${PTEST_PATH}/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user