<?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>13402</bug_id>
          
          <creation_ts>2019-06-18 06:05:35 +0000</creation_ts>
          <short_desc>Libraries missing from python package</short_desc>
          <delta_ts>2019-07-25 15:00:37 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</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>2.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Austin Haigh">haigh</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84225</commentid>
    <comment_count>0</comment_count>
    <who name="Austin Haigh">haigh</who>
    <bug_when>2019-06-18 06:05:35 +0000</bug_when>
    <thetext>Some python libraries aren&apos;t copied to the final image. The `on_install` method creates the expected files and directories in `tmp/work/core2-64-poky-linux/python/2.7.16-r0/sysroot-destdir/usr/lib/python2.7/`, but they do not exist in the generated image (tested with `runqemu qemux86-64 nographic`.

I am using an up-to-date copy of the master branch and am building with `bitbake core-image-base`. The only modification to the files generated by `. ./oe-init-build-env` is the following line appended to `conf/local.conf`:

IMAGE_INSTALL_append = &quot; python&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84226</commentid>
    <comment_count>1</comment_count>
    <who name="Austin Haigh">haigh</who>
    <bug_when>2019-06-18 06:10:29 +0000</bug_when>
    <thetext>Sorry about the typo, instead of `on_install` it should say `do_install`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84284</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-06-20 14:44:17 +0000</bug_when>
    <thetext>What libraries were missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84290</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-20 14:54:40 +0000</bug_when>
    <thetext>Turns out we never did fix python2 to have the same behaviour as python3 here.  The fix moving forward to is to use a patch I just sent to the list, but for now  you can just add &apos;python-modules&apos; instead.

Also, remember that Python 2 is EOL next year and you should be migrating to Python 3. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84493</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-25 15:00:37 +0000</bug_when>
    <thetext>Fixed in oe-core 778a6b4bf6aa9d0941d52ee05e14b061b659b3df.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>