Bug 13402 - Libraries missing from python package
Summary: Libraries missing from python package
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.7
Hardware: x86 x86_64
: Medium normal
Target Milestone: 2.8
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-18 06:05 UTC by Austin Haigh
Modified: 2019-07-25 15:00 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.