mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01:00
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>
18 lines
439 B
Plaintext
18 lines
439 B
Plaintext
inherit pip_install_wheel python3native python3-dir setuptools3-base
|
|
|
|
DEPENDS += "python3 python3-flit-core-native python3-pip-native"
|
|
|
|
flit_core_do_configure () {
|
|
mkdir -p ${S}/dist
|
|
cat > ${S}/build-it.py << EOF
|
|
from flit_core import buildapi
|
|
buildapi.build_wheel('./dist')
|
|
EOF
|
|
}
|
|
|
|
flit_core_do_compile () {
|
|
${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
|
|
}
|
|
|
|
EXPORT_FUNCTIONS do_configure do_compile
|