diff options
author | Ross Burton <ross.burton@arm.com> | 2025-02-12 20:31:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 11:56:03 +0000 |
commit | 837d41f078907dab61096940e127ec231e2a1237 (patch) | |
tree | 4e3ced4b9a8759c06a7fbc0226437ed56c31da69 /meta/recipes-devtools | |
parent | 7b9c7d80c0b65cb644a740d6e9cab6eec787d56f (diff) | |
download | poky-837d41f078907dab61096940e127ec231e2a1237.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python3-license-expression_30.4.1.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb b/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb index 649b53ea49..ec613f6eaa 100644 --- a/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb +++ b/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb | |||
@@ -22,8 +22,9 @@ RDEPENDS:${PN} += "\ | |||
22 | 22 | ||
23 | BBCLASSEXTEND = "native nativesdk" | 23 | BBCLASSEXTEND = "native nativesdk" |
24 | 24 | ||
25 | do_install_ptest() { | 25 | do_install_ptest:append() { |
26 | # The tests need some files from the source tree | ||
26 | install -d ${D}${PTEST_PATH}/src | 27 | install -d ${D}${PTEST_PATH}/src |
27 | cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ | 28 | ln -s ${PYTHON_SITEPACKAGES_DIR}/license_expression/ ${D}${PTEST_PATH}/src/ |
28 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ | 29 | install -m644 ${S}/setup.cfg ${D}${PTEST_PATH}/ |
29 | } | 30 | } |