| Summary: | Python modules not built/installed correctly | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Gary Thomas <gary> |
| Component: | meta-yocto | Assignee: | Nitin Kamble <nitin.a.kamble> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw |
| Version: | 0.9 | ||
| Target Milestone: | 1.0 PointRelease | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Gary Thomas
2010-10-16 04:19:51 UTC
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> |