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:08 +0000 |
| commit | 56a7caff924340004e829284c9fdd17e2c11c2a9 (patch) | |
| tree | 9d97615e911d8bc61456c5944a90abc2fe454c55 | |
| parent | 50adbdc4d67a3dfb13c0bde7606075f64e5c4675 (diff) | |
| download | poky-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>
| -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 | ||
