mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 14:02:21 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ab02b96e65
commit
fb0814a57b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user