]> code.ossystems Code Review - openembedded-core.git/commitdiff
distutils.bblass: change order of args to install step
authorMatthew McClintock <msm@freescale.com>
Tue, 21 Aug 2012 18:38:11 +0000 (13:38 -0500)
committerScott Garman <scott.a.garman@intel.com>
Mon, 24 Sep 2012 16:51:09 +0000 (09:51 -0700)
This let's the user override install-lib argument again if it needs
to be something else, otherwise things like python-setuptools
won't be able to modify the install-lib dir

This fixes a new issue exposed by my previous distutils patch
that fixed the python modules default install location

Signed-off-by: Matthew McClintock <msm@freescale.com>
meta/classes/distutils.bbclass

index 67ad5b3416d3de6425b722a2986f3f081590481a..ec471babd7f60c8afba7517cbf3d8ac0532caa8c 100644 (file)
@@ -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 setup.py install ${DISTUTILS_INSTALL_ARGS} --install-lib=${D}${libdir}/${PYTHON_DIR} || \
+        ${STAGING_BINDIR_NATIVE}/python setup.py install --install-lib=${D}${libdir}/${PYTHON_DIR} ${DISTUTILS_INSTALL_ARGS}|| \
         bbfatal "python setup.py install execution failed."
 
         for i in `find ${D} -name "*.py"` ; do \