summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTim Orling <tim.orling@konsulko.com>2022-03-12 13:40:31 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-16 08:48:08 +0000
commit56a7caff924340004e829284c9fdd17e2c11c2a9 (patch)
tree9d97615e911d8bc61456c5944a90abc2fe454c55 /meta
parent50adbdc4d67a3dfb13c0bde7606075f64e5c4675 (diff)
downloadpoky-56a7caff924340004e829284c9fdd17e2c11c2a9.tar.gz
poetry_core.bbclass: move from meta-python
poetry.core.masonry.api is one of the common PEP-517 build backends. (From OE-Core rev: b1d2626a501f33c289ecfc557b998982665f84ae) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/poetry_core.bbclass15
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 @@
1inherit pip_install_wheel python3native setuptools3-base
2
3DEPENDS += "python3-poetry-core-native"
4
5poetry_core_do_configure () {
6 :
7}
8
9# TODO: ideally this uses pypa/build
10poetry_core_do_compile () {
11 nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')"
12}
13do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
14
15EXPORT_FUNCTIONS do_configure do_compile