Patchwork distutils.bbclass: install libraries in ${PYTHON_SITEPACKAGES_DIR}

login
register
mail settings
Submitter Matthew McClintock
Date Aug. 23, 2012, 10:55 p.m.
Message ID <1345762551-11974-1-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/35245/
State New
Headers show

Comments

Matthew McClintock - Aug. 23, 2012, 10:55 p.m.
This moves libaries from ${libdir}/${PYTHON_DIR}/
to ${libdir}/${PYTHON_DIR}/sitepackages/

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/classes/distutils.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index 52a1aa8..bf1bd83 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -38,7 +38,7 @@  distutils_do_install() {
         STAGING_LIBDIR=${STAGING_LIBDIR} \
         PYTHONPATH=${D}/${PYTHON_SITEPACKAGES_DIR} \
         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
-        ${STAGING_BINDIR_NATIVE}/python-native/python setup.py install --install-lib=${D}${libdir}/${PYTHON_DIR} ${DISTUTILS_INSTALL_ARGS} || \
+        ${STAGING_BINDIR_NATIVE}/python-native/python setup.py install --install-lib=${D}${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \
         bbfatal "python setup.py install execution failed."
 
         for i in `find ${D} -name "*.py"` ; do \