mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
flit_core: clean up configure/compile
Make do_configure do nothing by default as the base configure isn't useful, and invoke the build API directly instead of writing a script. In the future, this can simply call python3-build. (From OE-Core rev: 2d80529a486d25ad96c448499392547e82779de4) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
17b0f1ecc6
commit
025fa5266e
@@ -3,15 +3,13 @@ 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
|
||||
:
|
||||
}
|
||||
|
||||
# TODO: ideally this uses pypa/build
|
||||
flit_core_do_compile () {
|
||||
${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
|
||||
mkdir -p ${S}/dist
|
||||
nativepython3 -c "from flit_core import buildapi; buildapi.build_wheel('./dist')"
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS do_configure do_compile
|
||||
|
||||
Reference in New Issue
Block a user