mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 01:06:37 +01:00
python3: Avoid installing test data into recipe-sysroot
There are several thousand files in the test directory which we don't need. Adding these for the native and target sysroots is a crazy amount of files to be throwing around needlessly. Delete the files from the sysroot side of things to tidy up the sysroots and improve performance. (From OE-Core rev: f73ac290617e89b80e10dc700c0e90efddc8e1b2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f6bced03011ad1663d68b0322a2f8aeb4d836646) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -360,3 +360,9 @@ RDEPENDS_${PN}-dev = ""
|
||||
|
||||
RDEPENDS_${PN}-tests_append_class-target = " bash"
|
||||
RDEPENDS_${PN}-tests_append_class-nativesdk = " bash"
|
||||
|
||||
# Python's tests contain large numbers of files we don't need in the recipe sysroots
|
||||
SYSROOT_PREPROCESS_FUNCS += " py3_sysroot_cleanup"
|
||||
py3_sysroot_cleanup () {
|
||||
rm -rf ${SYSROOT_DESTDIR}${libdir}/python${PYTHON_MAJMIN}/test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user