From: Tim Orling <[email protected]> poetry.core.masonry.api is one of the common PEP-517 build backends.
Signed-off-by: Tim Orling <[email protected]> --- meta/classes/poetry_core.bbclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta/classes/poetry_core.bbclass 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 -- 2.32.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#163180): https://lists.openembedded.org/g/openembedded-core/message/163180 Mute This Topic: https://lists.openembedded.org/mt/89786261/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
