ref commit 5783e717ee9f503d8e03992306a6b9ddfda6f73e Build python-pycairo. The file /usr/lib/python2.6/site-packages/cairo/__init__.py does not get installed. This makes the package useless (Python can't load it)
This fails because the paths used by setup.py are wrong. This install call dic.setup( name = "pycairo", version = pycairo_version, description = "python interface for cairo", ext_modules = [cairo], data_files = [ ('include/pycairo', ['src/pycairo.h']), ('lib/pkgconfig', [pkgconfig_file]), (os.path.join(dsy.get_python_lib(), 'cairo'), ['src/__init__.py']), ], ) ends up sending __init__.py into the sysroots tree, not the package image where it would eventually get packaged up. To be clear, this expression os.path.join(dsy.get_python_lib(), 'cairo') expands to something like /home/local/emenlow_test/tmp/sysroots/i586-poky-linux/usr/lib/python2.6/site-packages/cairo when it should be /home/local/emenlow_test/tmp/work/emen-poky-linux/python-pycairo-1.8.10-ml0/image/usr/lib/python2.6/site-packages/cairo
pushed a fix for this in the nitin/bugfixes branch on poky-contrib repository
This commit has gone in master for this bug: commit 4ffd8a2d7224803eba152c9dbc0f7e0f837931bc Author: Nitin A Kamble <nitin.a.kamble@intel.com> Date: Fri Apr 15 18:54:04 2011 -0700 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>
Bernard http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5a9b3fecdedf5b5d6b5d0bc23354dbefd6f10eaa