[PATCH 23/33] py3o: Rename to python_py3o

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/{pyo3.bbclass => python_pyo3.bbclass} | 2 +-
meta/classes/setuptools3_rust.bbclass | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
rename meta/classes/{pyo3.bbclass => python_pyo3.bbclass} (96%)

diff --git a/meta/classes/pyo3.bbclass b/meta/classes/python_pyo3.bbclass
similarity index 96%
rename from meta/classes/pyo3.bbclass
rename to meta/classes/python_pyo3.bbclass
index 6ce21329c2e..10cc3a06457 100644
--- a/meta/classes/pyo3.bbclass
+++ b/meta/classes/python_pyo3.bbclass
@@ -13,7 +13,7 @@ export RUSTFLAGS
export PYO3_PYTHON="${PYTHON}"
export PYO3_CONFIG_FILE="${WORKDIR}/pyo3.config"

-pyo3_do_configure () {
+python_pyo3_do_configure () {
cat > ${WORKDIR}/pyo3.config << EOF
implementation=CPython
version=${PYTHON_BASEVERSION}
diff --git a/meta/classes/setuptools3_rust.bbclass b/meta/classes/setuptools3_rust.bbclass
index fb11f08f89c..fa8508fbec6 100644
--- a/meta/classes/setuptools3_rust.bbclass
+++ b/meta/classes/setuptools3_rust.bbclass
@@ -1,4 +1,4 @@
-inherit pyo3 setuptools3
+inherit python_pyo3 setuptools3

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

--
2.32.0