<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'.&nbsp;</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&nbsp;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.&nbsp;</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 &lt;openembedded-core-bounces@lists.openembedded.org&gt; on behalf of Alejandro Enedino Hernandez
 Samaniego &lt;alejandro.enedino.hernandez-samaniego@xilinx.com&gt;<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>&nbsp;</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>
&gt; Simple - add python3-modules to the packagegroup. Sadly this seems to<br>
&gt; be 'common knowledge' that is poorly documented.<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 2018-08-14 0:51 GMT&#43;02:00 bhas_purk &lt;bhas_purk@hotmail.com&gt;:<br>
&gt;&gt; Hello,<br>
&gt;&gt; I am new to yocto, and we are using this for an Intel SOC.<br>
&gt;&gt; I am creating a console-image, and wanted to get python3 in the rootfs.<br>
&gt;&gt;<br>
&gt;&gt; So I added python3 in the recipe file -<br>
&gt;&gt; layers/meta-openembedded/meta-oe/recipes-core/packagegroups/packagegroup-basic.bb<br>
&gt;&gt; This gave me python3 in the rootfs and I can run ptyhon3. So that is great!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Now I would like to add some modules to python such that they are built in,<br>
&gt;&gt; and I dont have to do a pip install for the modules.<br>
&gt;&gt;<br>
&gt;&gt; I see that there is a script file which generates the manifest for all<br>
&gt;&gt; modules will be there.<br>
&gt;&gt; openembedded-core/scripts/contrib/python/generate-manifest-3.5.py<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I would like to edit this file to some python modules, and am wondering how.<br>
&gt;&gt;<br>
&gt;&gt; For example, one of the existing modules in the script is defined like this-<br>
&gt;&gt;&nbsp;&nbsp;&nbsp; m.addPackage( &quot;${PN}-argparse&quot;, &quot;Python command line argument parser&quot;,<br>
&gt;&gt; &quot;${PN}-core ${PN}-codecs ${PN}-textutils&quot;,<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;argparse.*&quot; )<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>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So my question is, for the modules I would like to add, how do I know the<br>
&gt;&gt; dependencies etc? And more importantly, is this the right way to add modules<br>
&gt;&gt; to python3 in the rootfs.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thank you<br>
&gt;&gt; Bhaskar<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Openembedded-core mailing list<br>
&gt;&gt; Openembedded-core@lists.openembedded.org<br>
&gt;&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
&gt;&gt;<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>