diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-12-16 21:41:29 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-17 19:07:21 +0000 |
commit | ca5427280d91444a7b986866a05894719967f0b0 (patch) | |
tree | 8cc0875b0361451dcefa50696ad457427fd29eb6 /meta | |
parent | c5cd7c5900bdf9bc19174db49ecdba355b59cd06 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes-recipe/python_maturin.bbclass | 17 |
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 | |||
7 | inherit python_pyo3 python_setuptools_build_meta | ||
8 | |||
9 | DEPENDS += "python3-maturin-native" | ||
10 | |||
11 | python_maturin_do_configure() { | ||
12 | python_pyo3_do_configure | ||
13 | cargo_common_do_configure | ||
14 | python_pep517_do_configure | ||
15 | } | ||
16 | |||
17 | EXPORT_FUNCTIONS do_configure | ||