Files
poky/meta/classes/flit_core.bbclass
Ross Burton a50bf48f90 meta: rename pip_install_wheel.bbclass to python_pep517.bbclass
pip_install_wheel shouldn't restricted to just using Pip to install
wheels (the installer module is simplier and likely a better option),
and in the future may be extended to also provide do_compile() using
the build module.

(From OE-Core rev: 3bdf64b97facce9706cc579bdbc9a80e0d48428f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-13 12:23:48 +00:00

20 lines
472 B
Plaintext

inherit python_pep517 python3native python3-dir setuptools3-base
DEPENDS += "python3 python3-flit-core-native"
flit_core_do_configure () {
:
}
# Where to execute the build process from
PEP517_SOURCE_PATH ?= "${S}"
# TODO: ideally this uses pypa/build
flit_core_do_compile () {
cd ${PEP517_SOURCE_PATH}
nativepython3 -mflit_core.wheel --outdir ${PEP517_WHEEL_PATH}
}
do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
EXPORT_FUNCTIONS do_configure do_compile