mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 06:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
50adbdc4d6
commit
56a7caff92
15
meta/classes/poetry_core.bbclass
Normal file
15
meta/classes/poetry_core.bbclass
Normal file
@@ -0,0 +1,15 @@
|
||||
inherit pip_install_wheel python3native setuptools3-base
|
||||
|
||||
DEPENDS += "python3-poetry-core-native"
|
||||
|
||||
poetry_core_do_configure () {
|
||||
:
|
||||
}
|
||||
|
||||
# TODO: ideally this uses pypa/build
|
||||
poetry_core_do_compile () {
|
||||
nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')"
|
||||
}
|
||||
do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
|
||||
|
||||
EXPORT_FUNCTIONS do_configure do_compile
|
||||
Reference in New Issue
Block a user