diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-07-23 09:52:16 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-25 15:27:33 +0100 |
commit | 0cd6a81d6df7b4f9fc1322bbc7306ab5802f5875 (patch) | |
tree | 5489e495177d060e47289c19ac7203ce64c2bb97 | |
parent | 0276edeb719b97d7d43dc096012b5a7b4097f949 (diff) | |
download | poky-0cd6a81d6df7b4f9fc1322bbc7306ab5802f5875.tar.gz |
python_setuptools3_rust: inherit ...build_meta
Rather than inheriting the aging `setuptools3` bbclass, inherit
`python_setuptools_build_meta` which is one of the PEP 517 build
backends (for proper wheels using pyproject.toml).
Since python_setuptools_build_meta does not have a do_configure,
call the parent python_pep517_do_configure().
(From OE-Core rev: 52d33576a17574025e40526816c5f0ba72a57eea)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/python_setuptools3_rust.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/python_setuptools3_rust.bbclass b/meta/classes-recipe/python_setuptools3_rust.bbclass index d6ce2edb96..d3d7590cbe 100644 --- a/meta/classes-recipe/python_setuptools3_rust.bbclass +++ b/meta/classes-recipe/python_setuptools3_rust.bbclass | |||
@@ -4,14 +4,14 @@ | |||
4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
5 | # | 5 | # |
6 | 6 | ||
7 | inherit python_pyo3 setuptools3 | 7 | inherit python_pyo3 python_setuptools_build_meta |
8 | 8 | ||
9 | DEPENDS += "python3-setuptools-rust-native" | 9 | DEPENDS += "python3-setuptools-rust-native" |
10 | 10 | ||
11 | python_setuptools3_rust_do_configure() { | 11 | python_setuptools3_rust_do_configure() { |
12 | python_pyo3_do_configure | 12 | python_pyo3_do_configure |
13 | cargo_common_do_configure | 13 | cargo_common_do_configure |
14 | setuptools3_do_configure | 14 | python_pep517_do_configure |
15 | } | 15 | } |
16 | 16 | ||
17 | EXPORT_FUNCTIONS do_configure | 17 | EXPORT_FUNCTIONS do_configure |