@@ -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}
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(-)