summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/python_maturin.bbclass
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2023-12-16 21:41:29 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-17 19:07:21 +0000
commitca5427280d91444a7b986866a05894719967f0b0 (patch)
tree8cc0875b0361451dcefa50696ad457427fd29eb6 /meta/classes-recipe/python_maturin.bbclass
parentc5cd7c5900bdf9bc19174db49ecdba355b59cd06 (diff)
downloadpoky-ca5427280d91444a7b986866a05894719967f0b0.tar.gz
classes-recipe: add python_maturin.bbclass
maturin is a replacement for setuptools_rust and another "backend" for building python wheels. (From OE-Core rev: 1c2f9d8f18ef8154573142638ca10a8f88e43419) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/python_maturin.bbclass')
-rw-r--r--meta/classes-recipe/python_maturin.bbclass17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/classes-recipe/python_maturin.bbclass b/meta/classes-recipe/python_maturin.bbclass
new file mode 100644
index 0000000000..c39d6c6e37
--- /dev/null
+++ b/meta/classes-recipe/python_maturin.bbclass
@@ -0,0 +1,17 @@
1#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7inherit python_pyo3 python_setuptools_build_meta
8
9DEPENDS += "python3-maturin-native"
10
11python_maturin_do_configure() {
12 python_pyo3_do_configure
13 cargo_common_do_configure
14 python_pep517_do_configure
15}
16
17EXPORT_FUNCTIONS do_configure