[yocto] Include additional python modules...

Ahmed El-Madhoun (aelmadho) aelmadho at cisco.com
Wed Nov 18 08:37:55 PST 2015


Hi All,

I am wondering if anything special needs to be done to provide additional python packages in python functions within recipes, for instance, in an image.bbclass extension, I have the following python function:

python do_write_yaml() {

    Import yaml

}

This fails indicating no such module, but when I use devshell, the os.sys.path seems to include the right path for native sysroot, and I have my "DEPENDS += python-pyyaml-native", however, within the python functions in the recipes, it is not able to see the pyyaml package, do I need to add the path manually to os.sys.path? For instance, how is "bb" and "oe" are always included in the PATH, and how do we make other python packages available in the path for extending existing functionality through python modules?

Any help is greatly appreciated.

Thanks,
Ahmed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151118/a189f454/attachment.html>


More information about the yocto mailing list