diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend index d52f18d..54c986e 100644 --- a/recipes-devtools/python/python3_%.bbappend +++ b/recipes-devtools/python/python3_%.bbappend @@ -1 +1,9 @@ EXTRA_OECONF_remove = "ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no" + +INCLUDE_PYCS = "0" + +PACKAGE_PREPROCESS_FUNCS += "clean_pycache" + +clean_pycache(){ + find ${PKGD} | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf +}