diff options
author | Tim Orling <ticotimo@gmail.com> | 2022-03-01 08:11:24 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-02 18:41:52 +0000 |
commit | 14c2dcbebccf072225a089518ffeb010401f479c (patch) | |
tree | 13591ac002d4d4054e11c6665e6258a4c238d073 | |
parent | c0fca53a9b48cb4e92da89e9e652623296244ff6 (diff) | |
download | openembedded-core-contrib-14c2dcbebccf072225a089518ffeb010401f479c.tar.gz |
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 <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/flit_core.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
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 |