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 <[email protected]>
---
 meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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}"
-- 
2.53.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233884): 
https://lists.openembedded.org/g/openembedded-core/message/233884
Mute This Topic: https://lists.openembedded.org/mt/118499157/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to