<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>477</bug_id>
          
          <creation_ts>2010-10-16 04:19:51 +0000</creation_ts>
          <short_desc>Python modules not built/installed correctly</short_desc>
          <delta_ts>2011-05-13 10:51:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 PointRelease</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10611</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2010-10-16 04:19:51 +0000</bug_when>
    <thetext>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&apos;t load it)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10612</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2010-10-16 07:10:03 +0000</bug_when>
    <thetext>This fails because the paths used by setup.py are wrong.  This install call
  
dic.setup(
  name = &quot;pycairo&quot;,
  version = pycairo_version,
  description = &quot;python interface for cairo&quot;,
  ext_modules = [cairo],
  data_files = [
    (&apos;include/pycairo&apos;, [&apos;src/pycairo.h&apos;]),
    (&apos;lib/pkgconfig&apos;, [pkgconfig_file]),
    (os.path.join(dsy.get_python_lib(), &apos;cairo&apos;), 
     [&apos;src/__init__.py&apos;]),
    ],
  )

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(), &apos;cairo&apos;)
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13310</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-04-15 19:10:34 +0000</bug_when>
    <thetext>pushed a fix for this in the nitin/bugfixes branch on poky-contrib repository</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13412</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-04-25 17:28:42 +0000</bug_when>
    <thetext>This commit has gone in master for this bug:


commit 4ffd8a2d7224803eba152c9dbc0f7e0f837931bc
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
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 &lt;nitin.a.kamble@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13795</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-13 10:51:16 +0000</bug_when>
    <thetext>Bernard

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5a9b3fecdedf5b5d6b5d0bc23354dbefd6f10eaa</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>