From: Tim Orling Date: Sat, 12 Mar 2022 21:40:31 +0000 (-0800) Subject: poetry_core.bbclass: move from meta-python X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4792 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d2626a501f33c289ecfc557b998982665f84ae;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git poetry_core.bbclass: move from meta-python poetry.core.masonry.api is one of the common PEP-517 build backends. Signed-off-by: Tim Orling --- diff --git a/meta/classes/poetry_core.bbclass b/meta/classes/poetry_core.bbclass new file mode 100644 index 00000000000..fb37c78c782 --- /dev/null +++ b/meta/classes/poetry_core.bbclass @@ -0,0 +1,15 @@ +inherit pip_install_wheel python3native setuptools3-base + +DEPENDS += "python3-poetry-core-native" + +poetry_core_do_configure () { + : +} + +# TODO: ideally this uses pypa/build +poetry_core_do_compile () { + nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')" +} +do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}" + +EXPORT_FUNCTIONS do_configure do_compile