mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
classes/python_poetry_core: use python_pep517_do_compile
Instead of implementing our own do_compile, set PEP517_BUILD_API and use the generic do_compile. (From OE-Core rev: e38afe528f25038f5adb7a7a94a1e007011696ee) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4f22a746d8
commit
49fe9edcde
@@ -2,14 +2,10 @@ inherit python_pep517 python3native setuptools3-base
|
||||
|
||||
DEPENDS += "python3-poetry-core-native"
|
||||
|
||||
PEP517_BUILD_API = "poetry.core.masonry.api"
|
||||
|
||||
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
|
||||
EXPORT_FUNCTIONS do_configure
|
||||
|
||||
Reference in New Issue
Block a user