@@ -26,7 +26,7 @@ inherit autotools features_check gettext python3native python3-dir pkgconfig gtk
REQUIRED_DISTRO_FEATURES = "pam"
-EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
+EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}"
do_configure:prepend() {
install -d ${S}/admin -d ${S}/m4
@@ -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}"
PYTHON_DIR now contains PYTHON_ABI, use only that. Move the installed site-packages directory to the correct location. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> --- meta-gnome/recipes-support/libuser/libuser_0.64.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)