]> code.ossystems Code Review - openembedded-core.git/commitdiff
python-pycairo: fix installation path of __init__.py
authorNitin A Kamble <nitin.a.kamble@intel.com>
Sat, 16 Apr 2011 01:54:04 +0000 (18:54 -0700)
committerSaul Wold <sgw@linux.intel.com>
Sat, 23 Apr 2011 05:03:59 +0000 (22:03 -0700)
This fixes Bug [YOCTO #477]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/recipes-devtools/python/python-pycairo_1.8.10.bb

index 7d73dc2ec4feefb040d20aa9d3e1294d0f62badf..24b3ff2c4397918f9c004a704e1c464408d68b14 100644 (file)
@@ -6,7 +6,7 @@ LICENSE = "LGPLv2.1 & MPLv1.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421"
 # cairo >= 1.8.8
 DEPENDS = "cairo"
-PR = "ml0"
+PR = "r1"
 
 SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.gz"
 
@@ -16,6 +16,12 @@ S = "${WORKDIR}/pycairo-${PV}"
 
 inherit distutils pkgconfig
 
+do_compile_prepend() {
+#fix the installation path of __init__.py
+#It was going in the sysroot instead of target install location
+       sed -i -e "s#dsy.get_python_lib()#'${D}${PYTHON_SITEPACKAGES_DIR}'#" ${S}/setup.py
+}
+
 do_install_append () {
        install -d ${D}${includedir}
        install -d ${D}${libdir}