diff options
Diffstat (limited to 'meta-python/classes')
| -rw-r--r-- | meta-python/classes/poetry_core.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-python/classes/poetry_core.bbclass b/meta-python/classes/poetry_core.bbclass new file mode 100644 index 0000000000..4b3f9631e2 --- /dev/null +++ b/meta-python/classes/poetry_core.bbclass | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | inherit pip_install_wheel python3native python3-dir setuptools3-base | ||
| 2 | |||
| 3 | DEPENDS += "python3 python3-poetry-core-native python3-pip-native" | ||
| 4 | |||
| 5 | do_configure () { | ||
| 6 | mkdir -p ${S}/dist | ||
| 7 | cat > ${S}/build-it.py << EOF | ||
| 8 | from poetry.core.masonry import api | ||
| 9 | api.build_wheel('${S}/dist') | ||
| 10 | EOF | ||
| 11 | } | ||
| 12 | |||
| 13 | do_compile () { | ||
| 14 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py | ||
| 15 | } | ||
