diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-04-15 18:54:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-24 22:50:35 +0100 |
commit | 4ffd8a2d7224803eba152c9dbc0f7e0f837931bc (patch) | |
tree | 02feeb65ec413ce72869b6109b2dc6f5cea5b3eb /meta/recipes-devtools/python | |
parent | db182009ab66898ef0c53568abf5dd3def3dac6a (diff) | |
download | poky-4ffd8a2d7224803eba152c9dbc0f7e0f837931bc.tar.gz |
python-pycairo: fix installation path of __init__.py
This fixes Bug [YOCTO #477]
(From OE-Core rev: 8f6436b25a96594d09c64c7ba20a045cb1f8d18a)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python-pycairo_1.8.10.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python-pycairo_1.8.10.bb b/meta/recipes-devtools/python/python-pycairo_1.8.10.bb index 7d73dc2ec4..24b3ff2c43 100644 --- a/meta/recipes-devtools/python/python-pycairo_1.8.10.bb +++ b/meta/recipes-devtools/python/python-pycairo_1.8.10.bb | |||
@@ -6,7 +6,7 @@ LICENSE = "LGPLv2.1 & MPLv1.1" | |||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421" |
7 | # cairo >= 1.8.8 | 7 | # cairo >= 1.8.8 |
8 | DEPENDS = "cairo" | 8 | DEPENDS = "cairo" |
9 | PR = "ml0" | 9 | PR = "r1" |
10 | 10 | ||
11 | SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.gz" | 11 | SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.gz" |
12 | 12 | ||
@@ -16,6 +16,12 @@ S = "${WORKDIR}/pycairo-${PV}" | |||
16 | 16 | ||
17 | inherit distutils pkgconfig | 17 | inherit distutils pkgconfig |
18 | 18 | ||
19 | do_compile_prepend() { | ||
20 | #fix the installation path of __init__.py | ||
21 | #It was going in the sysroot instead of target install location | ||
22 | sed -i -e "s#dsy.get_python_lib()#'${D}${PYTHON_SITEPACKAGES_DIR}'#" ${S}/setup.py | ||
23 | } | ||
24 | |||
19 | do_install_append () { | 25 | do_install_append () { |
20 | install -d ${D}${includedir} | 26 | install -d ${D}${includedir} |
21 | install -d ${D}${libdir} | 27 | install -d ${D}${libdir} |