@@ -2,15 +2,10 @@ inherit setuptools3-base python_pep517
DEPENDS += "python3-setuptools-native python3-wheel-native"
+PEP517_BUILD_API = "setuptools.build_meta"
+
setuptools_build_meta_do_configure () {
:
}
-# TODO: ideally this uses pypa/build
-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
+EXPORT_FUNCTIONS do_configure
Instead of implementing our own do_compile, set PEP517_BUILD_API and use the generic do_compile. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes/setuptools_build_meta.bbclass | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)