The class should export the tasks so they can be extended or overriden
elsewhere (like what setuptools3.bbclass has).

Signed-off-by: Tim Orling <[email protected]>
---
 meta/classes/flit_core.bbclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
index 8edbd654ff2..819d12457ce 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
-- 
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162563): 
https://lists.openembedded.org/g/openembedded-core/message/162563
Mute This Topic: https://lists.openembedded.org/mt/89479881/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to