This removes a further 1600 files from sstate handling and lets python create the ones it wants at runtime which is likely much better overall for performance.
Signed-off-by: Richard Purdie <[email protected]> --- meta/recipes-devtools/python/python3_3.10.2.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3_3.10.2.bb b/meta/recipes-devtools/python/python3_3.10.2.bb index b28aa6505a0..7ec443a531f 100644 --- a/meta/recipes-devtools/python/python3_3.10.2.bb +++ b/meta/recipes-devtools/python/python3_3.10.2.bb @@ -156,7 +156,12 @@ do_install:append:class-native() { # Remove the opt-1.pyc and opt-2.pyc files. There are over 3,000 of them # and the overhead in each recipe-sysroot-native isn't worth it, particularly # when they're only used for python called with -O or -OO. - find ${D} -name *opt-*.pyc -delete + #find ${D} -name *opt-*.pyc -delete + # Remove all pyc files. There are a ton of them and it is probably faster to let + # python create the ones it wants at runtime rather than manage in the sstate + # tarballs and sysroot creation. + find ${D} -name *.pyc -delete + } do_install:append() { -- 2.32.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#162663): https://lists.openembedded.org/g/openembedded-core/message/162663 Mute This Topic: https://lists.openembedded.org/mt/89528765/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
