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:43:24 +0000 |
commit | fb0814a57b4ed7b2beedbcc306d65839a366c3d2 (patch) | |
tree | cf2685488b49c16ab7968b7cd35509309f3428ec /meta/classes | |
parent | ab02b96e6506a7806917349def8a300ce51bae5d (diff) | |
download | poky-fb0814a57b4ed7b2beedbcc306d65839a366c3d2.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).
(From OE-Core rev: 14c2dcbebccf072225a089518ffeb010401f479c)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 | |||
2 | 2 | ||
3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" | 3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" |
4 | 4 | ||
5 | do_configure () { | 5 | flit_core_do_configure () { |
6 | mkdir -p ${S}/dist | 6 | mkdir -p ${S}/dist |
7 | cat > ${S}/build-it.py << EOF | 7 | cat > ${S}/build-it.py << EOF |
8 | from flit_core import buildapi | 8 | from flit_core import buildapi |
@@ -10,7 +10,8 @@ buildapi.build_wheel('./dist') | |||
10 | EOF | 10 | EOF |
11 | } | 11 | } |
12 | 12 | ||
13 | do_compile () { | 13 | flit_core_do_compile () { |
14 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py | 14 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py |
15 | } | 15 | } |
16 | 16 | ||
17 | EXPORT_FUNCTIONS do_configure do_compile | ||