From: Tim Orling Date: Tue, 1 Mar 2022 16:11:24 +0000 (-0800) Subject: flit_core: export do_configure and do_compile X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=14c2dcbebccf072225a089518ffeb010401f479c;p=openembedded-core.git flit_core: export do_configure and do_compile The class should export the tasks so they can be extended or overriden elsewhere (like what setuptools3.bbclass has). Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass index 8edbd654ff..819d12457c 100644 --- a/meta/classes/flit_core.bbclass +++ b/meta/classes/flit_core.bbclass @@ -2,7 +2,7 @@ inherit pip_install_wheel python3native python3-dir setuptools3-base DEPENDS += "python3 python3-flit-core-native python3-pip-native" -do_configure () { +flit_core_do_configure () { mkdir -p ${S}/dist cat > ${S}/build-it.py << EOF from flit_core import buildapi @@ -10,7 +10,8 @@ buildapi.build_wheel('./dist') EOF } -do_compile () { +flit_core_do_compile () { ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py } +EXPORT_FUNCTIONS do_configure do_compile