[PATCH 24/33] setuptools3_rust: Rename to python_setuptools3_rust

Richard Purdie
2022-03-14T22:49:06Z

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
...tuptools3_rust.bbclass => python_setuptools3_rust.bbclass} | 4 ++--
meta/recipes-devtools/python/python3-cryptography_36.0.1.bb | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
rename meta/classes/{setuptools3_rust.bbclass => python_setuptools3_rust.bbclass} (70%)

diff --git a/meta/classes/setuptools3_rust.bbclass b/meta/classes/python_setuptools3_rust.bbclass
similarity index 70%
rename from meta/classes/setuptools3_rust.bbclass
rename to meta/classes/python_setuptools3_rust.bbclass
index fa8508fbec6..f12e5d0cbd2 100644
--- a/meta/classes/setuptools3_rust.bbclass
+++ b/meta/classes/python_setuptools3_rust.bbclass
@@ -2,8 +2,8 @@ inherit python_pyo3 setuptools3

DEPENDS += "python3-setuptools-rust-native"

-setuptools3_rust_do_configure() {
- pyo3_do_configure
+python_setuptools3_rust_do_configure() {
+ python_pyo3_do_configure
cargo_common_do_configure
setuptools3_do_configure
}
diff --git a/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb b/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb
index 00791dce2de..11466ecece6 100644
--- a/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb
@@ -18,7 +18,7 @@ SRC_URI += " \
file://0002-Cargo.toml-edition-2018-2021.patch \
"

-inherit pypi setuptools3_rust
+inherit pypi python_setuptools3_rust

PIP_INSTALL_DIST_PATH = "${S}/dist"

--
2.32.0