diff mbox series

[5/5] python3targetconfig: don't manipulate PYTHONPATH

Message ID 20261116210435.4161338-5-ross.burton@arm.com
State New
Headers show
Series [1/5] python3: don't copy from UNPACKDIR to WORKDIR | expand

Commit Message

Ross Burton Nov. 16, 2026, 9:04 p.m. UTC
Since Python 3.14[1] there is no need to manipulate PYTHONPATH, we can
set _PYTHON_SYSCONFIGDATA_PATH to the correct path.

[1] cpython aecbc2e6f40 ("gh-115382: Fix cross compiles when host and
    target use same SOABI")

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

Patch

diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass
index 08be22ae654..76cd675782e 100644
--- a/meta/classes-recipe/python3targetconfig.bbclass
+++ b/meta/classes-recipe/python3targetconfig.bbclass
@@ -13,8 +13,8 @@  DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
 
 setup_target_config() {
         export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
+        export _PYTHON_SYSCONFIGDATA_PATH="${STAGING_LIBDIR}/python-sysconfigdata"
         export _PYTHON_PROJECT_BASE="${B}"
-        export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata${PYTHONPATH:+:$PYTHONPATH}
         export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
 }