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:
parent
0722982b5c
commit
ab3b84370b
|
|
@ -1 +1,9 @@
|
||||||
EXTRA_OECONF_remove = "ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no"
|
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
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue