diff options
-rw-r--r-- | meta/classes/distutils.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 2498685d66..cd06713882 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass | |||
@@ -73,6 +73,12 @@ distutils_do_install() { | |||
73 | mv -f ${D}${datadir}/share/* ${D}${datadir}/ | 73 | mv -f ${D}${datadir}/share/* ${D}${datadir}/ |
74 | rmdir ${D}${datadir}/share | 74 | rmdir ${D}${datadir}/share |
75 | fi | 75 | fi |
76 | |||
77 | # Fix backport modules | ||
78 | if test -e ${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/backports/__init__.py && test -e ${D}${PYTHON_SITEPACKAGES_DIR}/backports/__init__.py; then | ||
79 | rm ${D}${PYTHON_SITEPACKAGES_DIR}/backports/__init__.py; | ||
80 | rm ${D}${PYTHON_SITEPACKAGES_DIR}/backports/__init__.pyc; | ||
81 | fi | ||
76 | } | 82 | } |
77 | 83 | ||
78 | EXPORT_FUNCTIONS do_compile do_install | 84 | EXPORT_FUNCTIONS do_compile do_install |