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-11 17:46:11 +0000 |
commit | 09f368042fa486df448c8b7b2f826cb30c9e03a4 (patch) | |
tree | cad94d8d30dbb9b49360a58338d531fa514fc9ac /meta | |
parent | e9217245ee03b3477b9eda36984aac96c70be079 (diff) | |
download | poky-09f368042fa486df448c8b7b2f826cb30c9e03a4.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: 653f8b1a8adf59d924028bfc69ead1c7437de11e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f6bced03011ad1663d68b0322a2f8aeb4d836646)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.8.5.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.8.5.bb b/meta/recipes-devtools/python/python3_3.8.5.bb index 0e588d7e4c..fb066084bf 100644 --- a/meta/recipes-devtools/python/python3_3.8.5.bb +++ b/meta/recipes-devtools/python/python3_3.8.5.bb | |||
@@ -361,3 +361,9 @@ RDEPENDS_${PN}-dev = "" | |||
361 | 361 | ||
362 | RDEPENDS_${PN}-tests_append_class-target = " ${MLPREFIX}bash" | 362 | RDEPENDS_${PN}-tests_append_class-target = " ${MLPREFIX}bash" |
363 | RDEPENDS_${PN}-tests_append_class-nativesdk = " ${MLPREFIX}bash" | 363 | RDEPENDS_${PN}-tests_append_class-nativesdk = " ${MLPREFIX}bash" |
364 | |||
365 | # Python's tests contain large numbers of files we don't need in the recipe sysroots | ||
366 | SYSROOT_PREPROCESS_FUNCS += " py3_sysroot_cleanup" | ||
367 | py3_sysroot_cleanup () { | ||
368 | rm -rf ${SYSROOT_DESTDIR}${libdir}/python${PYTHON_MAJMIN}/test | ||
369 | } | ||