diff options
author | Tim Orling <tim.orling@konsulko.com> | 2022-03-12 13:40:31 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-16 08:48:04 +0000 |
commit | b1d2626a501f33c289ecfc557b998982665f84ae (patch) | |
tree | 8d4fac31bcd033995fad72a6bafd7bec1e7dbd8a /meta | |
parent | 7fefeea0b8a0784052e87768588859c703d47fb5 (diff) | |
download | openembedded-core-contrib-b1d2626a501f33c289ecfc557b998982665f84ae.tar.gz |
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 <tim.orling@konsulko.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/poetry_core.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/poetry_core.bbclass b/meta/classes/poetry_core.bbclass new file mode 100644 index 0000000000..fb37c78c78 --- /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 |