diff mbox series

[RFC,10/14] libcap-ng-python: Use PYTHON_DIR for FILES

Message ID 20260325113112.1163632-11-zboszor@gmail.com
State New
Headers show
Series Support Python freethreading | expand

Commit Message

Zoltán Böszörményi March 25, 2026, 11:24 a.m. UTC
PYTHON_DIR now contains PYTHON_ABI, use it for consistency.

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

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
index f702056f02..4e01c320fd 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
+++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
@@ -12,6 +12,9 @@  EXTRA_OECONF += "--with-python3"
 
 do_install() {
     oe_runmake 'DESTDIR=${D}' install -C ${B}/bindings/python3
+    if [ ! -d ${D}${libdir}/${PYTHON_DIR} ]; then
+        mv ${D}${libdir}/python${PYTHON_BASEVERSION} ${D}${libdir}/${PYTHON_DIR}
+    fi
 }
 
-FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
+FILES:${PN} = "${libdir}/${PYTHON_DIR}"