[1/1] python-setuptools: Fix setuptools install libdir != /usr/lib

Submitted by Mark Hatle on Aug. 1, 2012, 2:59 a.m.

Details

Message ID bb4b80e538c6b5f7e7d889853855692c5e43e0dc.1343789879.git.mark.hatle@windriver.com
State Accepted
Commit d8ca8b21c6959e772fa1b437ce498b7759fae0ab
Headers show

Commit Message

Mark Hatle Aug. 1, 2012, 2:59 a.m.
--install-lib= is required to be passed via distutils install
otherwise the install location gets set to whatever the python-native
location is.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 .../python/python-setuptools_0.6c11.bb             |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-devtools/python/python-setuptools_0.6c11.bb b/meta/recipes-devtools/python/python-setuptools_0.6c11.bb
index a769714..24dd9e5 100644
--- a/meta/recipes-devtools/python/python-setuptools_0.6c11.bb
+++ b/meta/recipes-devtools/python/python-setuptools_0.6c11.bb
@@ -5,7 +5,7 @@  LICENSE = "PSF"
 LIC_FILES_CHKSUM = "file://setup.py;beginline=23;endline=23;md5=8a314270dd7a8dbca741775415f1716e"
 
 SRCNAME = "setuptools"
-PR = "ml4"
+PR = "ml5"
 DEPENDS += "python"
 DEPENDS_virtclass-native += "python-native"
 
@@ -16,6 +16,8 @@  S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
 
+DISTUTILS_INSTALL_ARGS += "--install-lib=${D}${libdir}/${PYTHON_DIR}/site-packages"
+
 do_install_prepend() {
     install -d ${D}/${libdir}/${PYTHON_DIR}/site-packages
 }