summaryrefslogtreecommitdiffstats
path: root/meta/classes/poetry_core.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/poetry_core.bbclass')
-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