[OE-core] adding python modules

Burton, Ross ross.burton at intel.com
Tue Aug 14 10:03:48 UTC 2018


If you're referring to the standard library modules then they should
be installed for you as when you say to install python3, you actually
get python3-modules.

If you want to install further non-standard modules then just add them
to the image, for example python3-pip will give you pip.

Ross

On 13 August 2018 at 23:51, bhas_purk <bhas_purk at hotmail.com> wrote:
> Hello,
> I am new to yocto, and we are using this for an Intel SOC.
> I am creating a console-image, and wanted to get python3 in the rootfs.
>
> So I added python3 in the recipe file -
> layers/meta-openembedded/meta-oe/recipes-core/packagegroups/packagegroup-basic.bb
> This gave me python3 in the rootfs and I can run ptyhon3. So that is great!
>
>
> Now I would like to add some modules to python such that they are built in,
> and I dont have to do a pip install for the modules.
>
> I see that there is a script file which generates the manifest for all
> modules will be there.
> openembedded-core/scripts/contrib/python/generate-manifest-3.5.py
>
>
> I would like to edit this file to some python modules, and am wondering how.
>
> For example, one of the existing modules in the script is defined like this-
>   m.addPackage( "${PN}-argparse", "Python command line argument parser",
> "${PN}-core ${PN}-codecs ${PN}-textutils",
>     "argparse.*" )
>
>
> So my question is, for the modules I would like to add, how do I know the
> dependencies etc? And more importantly, is this the right way to add modules
> to python3 in the rootfs.
>
>
> Thank you
> Bhaskar
>
>
>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



More information about the Openembedded-core mailing list