<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for your inputs.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Indeed I am not using master, but 'pyro'. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I added python3-modules, but still did not get the modules that I wanted. For example, I see atexit.py in the rootfs in /usr/lib/python2.7. But I dont see that under python3.5, I need that.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For pexpect and jsonrpclib, I was able to create/copy recipes and now I do see those modules in rootfs. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So the questions remains, how do I get atexit.py, math.py etc.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Bhaskar</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> openembedded-core-bounces@lists.openembedded.org <openembedded-core-bounces@lists.openembedded.org> on behalf of Alejandro Enedino Hernandez
Samaniego <alejandro.enedino.hernandez-samaniego@xilinx.com><br>
<b>Sent:</b> Tuesday, August 14, 2018 2:21 PM<br>
<b>To:</b> openembedded-core@lists.openembedded.org<br>
<b>Subject:</b> Re: [OE-core] adding python modules</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hey Bhaskar, Alex<br>
<br>
<br>
On 08/14/2018 01:18 AM, Alexander Kanavin wrote:<br>
> Simple - add python3-modules to the packagegroup. Sadly this seems to<br>
> be 'common knowledge' that is poorly documented.<br>
><br>
> Alex<br>
I'm pretty sure that the python3-modules package is included by default <br>
when python is installed (on master)<br>
if you wont be using master then yes, install python3-modules<br>
><br>
> 2018-08-14 0:51 GMT+02:00 bhas_purk <bhas_purk@hotmail.com>:<br>
>> Hello,<br>
>> I am new to yocto, and we are using this for an Intel SOC.<br>
>> I am creating a console-image, and wanted to get python3 in the rootfs.<br>
>><br>
>> So I added python3 in the recipe file -<br>
>> layers/meta-openembedded/meta-oe/recipes-core/packagegroups/packagegroup-basic.bb<br>
>> This gave me python3 in the rootfs and I can run ptyhon3. So that is great!<br>
>><br>
>><br>
>> Now I would like to add some modules to python such that they are built in,<br>
>> and I dont have to do a pip install for the modules.<br>
>><br>
>> I see that there is a script file which generates the manifest for all<br>
>> modules will be there.<br>
>> openembedded-core/scripts/contrib/python/generate-manifest-3.5.py<br>
>><br>
>><br>
>> I would like to edit this file to some python modules, and am wondering how.<br>
>><br>
>> For example, one of the existing modules in the script is defined like this-<br>
>> m.addPackage( "${PN}-argparse", "Python command line argument parser",<br>
>> "${PN}-core ${PN}-codecs ${PN}-textutils",<br>
>> "argparse.*" )<br>
The generate-manifest-3.5 script is no longer used (again, on master),<br>
there is a new one called create-manifest where you can add more granularity<br>
to the python build, but in this case I don't believe you need it.<br>
<br>
Alejandro<br>
>><br>
>><br>
>> So my question is, for the modules I would like to add, how do I know the<br>
>> dependencies etc? And more importantly, is this the right way to add modules<br>
>> to python3 in the rootfs.<br>
>><br>
>><br>
>> Thank you<br>
>> Bhaskar<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> _______________________________________________<br>
>> Openembedded-core mailing list<br>
>> Openembedded-core@lists.openembedded.org<br>
>> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
>><br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
Openembedded-core@lists.openembedded.org<br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</div>
</span></font></div>
</body>
</html>