diff mbox series

[2/2] classes/python_pyo3: export fewer variables

Message ID 20260916210141.1080593-2-ross.burton@arm.com
State New
Headers show
Series [1/2] python3-bcrypt: enable native builds | expand

Commit Message

Ross Burton Sept. 16, 2026, 9:01 p.m. UTC
These variables are already set in the pyo3.config that is written, so
there is no need to also export them.

Apart from PYO3_PYTHON, so set "executable".

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes-recipe/python_pyo3.bbclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/python_pyo3.bbclass b/meta/classes-recipe/python_pyo3.bbclass
index d2aa188cf07..8854ed80d9b 100644
--- a/meta/classes-recipe/python_pyo3.bbclass
+++ b/meta/classes-recipe/python_pyo3.bbclass
@@ -12,11 +12,8 @@ 
 inherit cargo python3-dir siteinfo
 
 export PYO3_CROSS = "1"
-export PYO3_CROSS_PYTHON_VERSION = "${PYTHON_BASEVERSION}"
-export PYO3_CROSS_LIB_DIR = "${STAGING_LIBDIR}"
 export CARGO_BUILD_TARGET = "${RUST_HOST_SYS}"
 export RUSTFLAGS
-export PYO3_PYTHON = "${PYTHON}"
 export PYO3_CONFIG_FILE = "${WORKDIR}/pyo3.config"
 
 python_pyo3_do_configure () {
@@ -25,6 +22,7 @@  implementation=CPython
 version=${PYTHON_BASEVERSION}
 shared=true
 abi3=false
+executable=${PYTHON}
 lib_name=${PYTHON_DIR}
 lib_dir=${STAGING_LIBDIR}
 pointer_width=${SITEINFO_BITS}