Skip to contentSkip to conversation

python3-m2crypto: Remove __pycache__ files

PATCH New Khem Raj 1 participant 1 message Aug 7, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-m2crypto: Remove __pycache__ files

They may not be appropriate for target due to cross compiling

---
 .../recipes-devtools/python/python3-m2crypto_0.39.0.bb       | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-m2crypto_0.39.0.bb +5 -0
index 3a4a700bf7..ac62773064 100644
@@ -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"
Signature · 1 line
2.41.0