[OE-core] adding python modules

Alejandro Enedino Hernandez Samaniego alejandro.enedino.hernandez-samaniego at xilinx.com
Tue Aug 14 18:21:37 UTC 2018


Hey Bhaskar, Alex


On 08/14/2018 01:18 AM, Alexander Kanavin wrote:
> Simple - add python3-modules to the packagegroup. Sadly this seems to
> be 'common knowledge' that is poorly documented.
>
> Alex
I'm pretty sure that the python3-modules package is included by default 
when python is installed (on master)
if you wont be using master then yes, install python3-modules
>
> 2018-08-14 0:51 GMT+02:00 bhas_purk <bhas_purk at hotmail.com>:
>> 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.*" )
The generate-manifest-3.5 script is no longer used (again, on master),
there is a new one called create-manifest where you can add more granularity
to the python build, but in this case I don't believe you need it.

Alejandro
>>
>>
>> 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