diff options
Diffstat (limited to 'meta/classes/poetry_core.bbclass')
| -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 @@ | |||
| 1 | inherit pip_install_wheel python3native setuptools3-base | ||
| 2 | |||
| 3 | DEPENDS += "python3-poetry-core-native" | ||
| 4 | |||
| 5 | poetry_core_do_configure () { | ||
| 6 | : | ||
| 7 | } | ||
| 8 | |||
| 9 | # TODO: ideally this uses pypa/build | ||
| 10 | poetry_core_do_compile () { | ||
| 11 | nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')" | ||
| 12 | } | ||
| 13 | do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}" | ||
| 14 | |||
| 15 | EXPORT_FUNCTIONS do_configure do_compile | ||
