diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-27 17:12:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-28 23:12:05 +0000 |
commit | b5869bf29a7fbdd6e43761af33937486ee3a7f5d (patch) | |
tree | c4693da15e4b34e8cb5c15ee4d00bb5f43ca41b1 /meta/recipes-devtools/python | |
parent | 2599b4af5ce2c8b93ed509aec723dc72bc152dc7 (diff) | |
download | poky-b5869bf29a7fbdd6e43761af33937486ee3a7f5d.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: f6bced03011ad1663d68b0322a2f8aeb4d836646)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.9.1.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.9.1.bb b/meta/recipes-devtools/python/python3_3.9.1.bb index 17d0c032f7..a89122f949 100644 --- a/meta/recipes-devtools/python/python3_3.9.1.bb +++ b/meta/recipes-devtools/python/python3_3.9.1.bb | |||
@@ -372,3 +372,9 @@ RDEPENDS_${PN}-dev = "" | |||
372 | 372 | ||
373 | RDEPENDS_${PN}-tests_append_class-target = " ${MLPREFIX}bash" | 373 | RDEPENDS_${PN}-tests_append_class-target = " ${MLPREFIX}bash" |
374 | RDEPENDS_${PN}-tests_append_class-nativesdk = " ${MLPREFIX}bash" | 374 | RDEPENDS_${PN}-tests_append_class-nativesdk = " ${MLPREFIX}bash" |
375 | |||
376 | # Python's tests contain large numbers of files we don't need in the recipe sysroots | ||
377 | SYSROOT_PREPROCESS_FUNCS += " py3_sysroot_cleanup" | ||
378 | py3_sysroot_cleanup () { | ||
379 | rm -rf ${SYSROOT_DESTDIR}${libdir}/python${PYTHON_MAJMIN}/test | ||
380 | } | ||