Bug 13402

Summary: Libraries missing from python package
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Austin Haigh <haigh>
Component: devtools / tool chainAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.7   
Target Milestone: 2.8   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Austin Haigh 2019-06-18 06:05:35 UTC
Some python libraries aren'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 = " python"
Comment 1 Austin Haigh 2019-06-18 06:10:29 UTC
Sorry about the typo, instead of `on_install` it should say `do_install`.
Comment 2 Randy MacLeod 2019-06-20 14:44:17 UTC
What libraries were missing.
Comment 3 Ross Burton 2019-06-20 14:54:40 UTC
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 'python-modules' instead.

Also, remember that Python 2 is EOL next year and you should be migrating to Python 3. :)
Comment 4 Ross Burton 2019-07-25 15:00:37 UTC
Fixed in oe-core 778a6b4bf6aa9d0941d52ee05e14b061b659b3df.