python3: Removes pycache.

INCLUDE_PYC = 0 should prevent the python recipe to build pycache.
Because it still produces half the pycache (bug?),
I added a script to find and remove all pycache directories before they are packaged.

BugzID: 53805

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
Lucien Mueller 2018-12-12 16:28:36 +01:00 committed by Gogs
parent 0722982b5c
commit ab3b84370b
1 changed files with 8 additions and 0 deletions

View File

@ -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
}