mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
classes/setuptools_build_meta: 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: 39a05e44f232775560ad79e49ffe4fb17ed6533c) 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
0f31b46827
commit
fc364f1c55
@@ -2,15 +2,10 @@ inherit setuptools3-base python_pep517
|
|||||||
|
|
||||||
DEPENDS += "python3-setuptools-native python3-wheel-native"
|
DEPENDS += "python3-setuptools-native python3-wheel-native"
|
||||||
|
|
||||||
|
PEP517_BUILD_API = "setuptools.build_meta"
|
||||||
|
|
||||||
setuptools_build_meta_do_configure () {
|
setuptools_build_meta_do_configure () {
|
||||||
:
|
:
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: ideally this uses pypa/build
|
EXPORT_FUNCTIONS do_configure
|
||||||
setuptools_build_meta_do_compile () {
|
|
||||||
cd ${PEP517_SOURCE_PATH}
|
|
||||||
nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PEP517_WHEEL_PATH}')"
|
|
||||||
}
|
|
||||||
do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
|
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_configure do_compile
|
|
||||||
|
|||||||
Reference in New Issue
Block a user