All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] python3-native: Remove all pyc files
@ 2022-03-03 16:34 Richard Purdie
  2022-03-03 16:34 ` [PATCH 2/2] python3: Drop opt1 and opt2 pyc files from target Richard Purdie
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Richard Purdie @ 2022-03-03 16:34 UTC (permalink / raw)
  To: openembedded-core

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 <richard.purdie@linuxfoundation.org>
---
 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



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-03-07 13:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 16:34 [PATCH 1/2] python3-native: Remove all pyc files Richard Purdie
2022-03-03 16:34 ` [PATCH 2/2] python3: Drop opt1 and opt2 pyc files from target Richard Purdie
2022-03-03 17:11 ` [OE-core] [PATCH 1/2] python3-native: Remove all pyc files Konrad Weihmann
     [not found] ` <16D8EE213DFCFBC2.18834@lists.openembedded.org>
2022-03-03 17:14   ` Konrad Weihmann
2022-03-03 17:14 ` Ross Burton
2022-03-03 17:16   ` Richard Purdie
2022-03-03 23:28     ` Tim Orling
2022-03-03 23:46       ` Richard Purdie
2022-03-07  7:36         ` Konrad Weihmann
2022-03-07  9:45           ` Richard Purdie
2022-03-07 13:25             ` Konrad Weihmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.