diff mbox series

[RFC,meta-oe,4/6] upm: Support Python free-threading

Message ID 20260326153210.2245962-5-zboszor@gmail.com
State New
Headers show
Series Fix some fallouts with Python free-threading enabled | expand

Commit Message

Böszörményi Zoltán March 26, 2026, 3:25 p.m. UTC
Add -DPYTHON3_PACKAGES_PATH=${PYTHON_SITEPACKAGES_DIR} to the
compilation options to make sure the python module is installed
into the correct location.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta-oe/recipes-extended/upm/upm_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb
index df60fb5a81..ee752dea95 100644
--- a/meta-oe/recipes-extended/upm/upm_git.bb
+++ b/meta-oe/recipes-extended/upm/upm_git.bb
@@ -45,7 +45,7 @@  BINDINGS:armv5 ??= "python"
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', 'python3-${PN}', 'python', '', d)}"
 
-PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}.so -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}, -DBUILDSWIGPYTHON=OFF, swig-native python3,"
+PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON -DPYTHON3_PACKAGES_PATH=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}.so -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}, -DBUILDSWIGPYTHON=OFF, swig-native python3,"
 PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs-native,"
 
 do_configure:prepend() {