]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
classes-recipe: add python_maturin.bbclass
authorTim Orling <ticotimo@gmail.com>
Sun, 17 Dec 2023 05:41:29 +0000 (21:41 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Dec 2023 19:04:39 +0000 (19:04 +0000)
maturin is a replacement for setuptools_rust and another "backend" for
building python wheels.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/python_maturin.bbclass [new file with mode: 0644]

diff --git a/meta/classes-recipe/python_maturin.bbclass b/meta/classes-recipe/python_maturin.bbclass
new file mode 100644 (file)
index 0000000..c39d6c6
--- /dev/null
@@ -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