summaryrefslogtreecommitdiff
path: root/meta/classes/distutils.bbclass
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2012-08-21 13:44:21 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-22 14:19:14 +0100
commit3b23feca31480cc56f55301fd0274e622c40b522 (patch)
treed8aa3870483688b078ba5c5c9a7964b559fdc865 /meta/classes/distutils.bbclass
parent84bcacd5b4737520f0fc76333f0165ef5b87c207 (diff)
downloadopenembedded-core-3b23feca31480cc56f55301fd0274e622c40b522.tar.gz
openembedded-core-3b23feca31480cc56f55301fd0274e622c40b522.tar.bz2
openembedded-core-3b23feca31480cc56f55301fd0274e622c40b522.zip
distutils.bblass: change order of args to install step
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. Also, it removes running the install step twice which was inadvertant Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distutils.bbclass')
-rw-r--r--meta/classes/distutils.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index 7588b81542..52a1aa8749 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -38,8 +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 ${DISTUTILS_INSTALL_ARGS} || \
- ${STAGING_BINDIR_NATIVE}/python-native/python setup.py install ${DISTUTILS_INSTALL_ARGS} --install-lib=${D}${libdir}/${PYTHON_DIR} || \
+ ${STAGING_BINDIR_NATIVE}/python-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 \