@@ -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
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. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes/flit_core.bbclass | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)