From 5adde6b9b8fd9cc41606f33501731fa0eac8dab3 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 28 Jul 2023 11:07:19 -0700 Subject: [PATCH] python3-m2crypto: Remove __pycache__ files They may not be appropriate for target due to cross compiling Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-m2crypto_0.39.0.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb index 3a4a700bf7..ac62773064 100644 --- a/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb @@ -44,4 +44,9 @@ export SWIG_FEATURES export STAGING_DIR +do_install:append() { + rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc + rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc +} + BBCLASSEXTEND = "native"