From 1c2f9d8f18ef8154573142638ca10a8f88e43419 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sat, 16 Dec 2023 21:41:29 -0800 Subject: [PATCH] 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 --- meta/classes-recipe/python_maturin.bbclass | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meta/classes-recipe/python_maturin.bbclass 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 -- 2.47.3