Files
poky/meta/classes/python_poetry_core.bbclass
Ross Burton be592ff81c poetry_core: update for renamed class pip_install_wheel to python_pep517
(From OE-Core rev: 69014d91fd6a3fba2b68703f587a4fc5aa1d8bcc)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-16 08:48:08 +00:00

16 lines
405 B
Plaintext

inherit python_pep517 python3native setuptools3-base
DEPENDS += "python3-poetry-core-native"
python_poetry_core_do_configure () {
:
}
# TODO: ideally this uses pypa/build
python_poetry_core_do_compile () {
nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
}
do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
EXPORT_FUNCTIONS do_configure do_compile