diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-27 17:12:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-05 23:37:04 +0000 |
commit | cc711af144afb98d328413ebed02bbf58cfc35ed (patch) | |
tree | 0474c1c8ae91c4d0189a6c0d51c6f1b550a8d2bb /meta/recipes-devtools | |
parent | 498aed98519e30ef203ddd5c7f050036e56562ee (diff) | |
download | poky-cc711af144afb98d328413ebed02bbf58cfc35ed.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.8.2.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.8.2.bb b/meta/recipes-devtools/python/python3_3.8.2.bb index 9eddad4ad4..a86542e547 100644 --- a/meta/recipes-devtools/python/python3_3.8.2.bb +++ b/meta/recipes-devtools/python/python3_3.8.2.bb | |||
@@ -360,3 +360,9 @@ RDEPENDS_${PN}-dev = "" | |||
360 | 360 | ||
361 | RDEPENDS_${PN}-tests_append_class-target = " bash" | 361 | RDEPENDS_${PN}-tests_append_class-target = " bash" |
362 | RDEPENDS_${PN}-tests_append_class-nativesdk = " bash" | 362 | RDEPENDS_${PN}-tests_append_class-nativesdk = " bash" |
363 | |||
364 | # Python's tests contain large numbers of files we don't need in the recipe sysroots | ||
365 | SYSROOT_PREPROCESS_FUNCS += " py3_sysroot_cleanup" | ||
366 | py3_sysroot_cleanup () { | ||
367 | rm -rf ${SYSROOT_DESTDIR}${libdir}/python${PYTHON_MAJMIN}/test | ||
368 | } | ||