From: Tim Orling Date: Sun, 17 Dec 2023 05:41:29 +0000 (-0800) Subject: classes-recipe: add python_maturin.bbclass X-Git-Tag: yocto-5.2~4297 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c2f9d8f18ef8154573142638ca10a8f88e43419;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes-recipe: add python_maturin.bbclass maturin is a replacement for setuptools_rust and another "backend" for building python wheels. Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/python_maturin.bbclass b/meta/classes-recipe/python_maturin.bbclass new file mode 100644 index 00000000000..c39d6c6e37d --- /dev/null +++ b/meta/classes-recipe/python_maturin.bbclass @@ -0,0 +1,17 @@ +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +inherit python_pyo3 python_setuptools_build_meta + +DEPENDS += "python3-maturin-native" + +python_maturin_do_configure() { + python_pyo3_do_configure + cargo_common_do_configure + python_pep517_do_configure +} + +EXPORT_FUNCTIONS do_configure