EXTRA_OECONF_remove = "ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no" PACKAGE_PREPROCESS_FUNCS += "${@ 'clean_pycache' if not bb.utils.to_boolean(d.getVar('INCLUDE_PYCS')) else '' }" clean_pycache(){ find ${PKGD} | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf } do_install_append(){ cd ${D}${libdir}/python${PYTHON_MAJMIN} rm -rf turtle.py turtledemo/ cd - }