diff mbox series

[RFC,meta-gnome,2/6] libuser: Support Python free-threading

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

Commit Message

Zoltán Böszörményi March 26, 2026, 3:25 p.m. UTC
libuser installs its python module into the ABI-less
site-packages directory.

Move the installed site-packages directory to the correct
location if needed.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta-gnome/recipes-support/libuser/libuser_0.64.bb | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-support/libuser/libuser_0.64.bb b/meta-gnome/recipes-support/libuser/libuser_0.64.bb
index 64b51e6c97..dbba5877c2 100644
--- a/meta-gnome/recipes-support/libuser/libuser_0.64.bb
+++ b/meta-gnome/recipes-support/libuser/libuser_0.64.bb
@@ -36,6 +36,12 @@  do_configure:prepend() {
     cd -
 }
 
+do_install:append () {
+    if [ ! -d ${D}${libdir}/${PYTHON_DIR} ]; then
+        mv ${D}${libdir}/python${PYTHON_BASEVERSION} ${D}${libdir}/${PYTHON_DIR}
+    fi
+}
+
 PACKAGES += "${PN}-python "
 
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"