From: Ross Burton Date: Wed, 16 Mar 2022 18:32:39 +0000 (+0000) Subject: classes/python_poetry_core: use python_pep517_do_compile X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4741 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e38afe528f25038f5adb7a7a94a1e007011696ee;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/python_poetry_core: use python_pep517_do_compile Instead of implementing our own do_compile, set PEP517_BUILD_API and use the generic do_compile. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/python_poetry_core.bbclass b/meta/classes/python_poetry_core.bbclass index 47b2fe46d5f..3fecb6c6bb8 100644 --- a/meta/classes/python_poetry_core.bbclass +++ b/meta/classes/python_poetry_core.bbclass @@ -2,14 +2,10 @@ inherit python_pep517 python3native setuptools3-base DEPENDS += "python3-poetry-core-native" +PEP517_BUILD_API = "poetry.core.masonry.api" + python_poetry_core_do_configure () { : } -# TODO: ideally this uses pypa/build -python_poetry_core_do_compile () { - nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')" -} -do_compile[cleandirs] += "${PEP517_WHEEL_PATH}" - -EXPORT_FUNCTIONS do_configure do_compile +EXPORT_FUNCTIONS do_configure