Thanks for your inputs. Indeed I am not using master, but 'pyro'. 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.
For pexpect and jsonrpclib, I was able to create/copy recipes and now I do see those modules in rootfs. So the questions remains, how do I get atexit.py, math.py etc. Thank you Bhaskar ________________________________ From: openembedded-core-boun...@lists.openembedded.org <openembedded-core-boun...@lists.openembedded.org> on behalf of Alejandro Enedino Hernandez Samaniego <alejandro.enedino.hernandez-samani...@xilinx.com> Sent: Tuesday, August 14, 2018 2:21 PM To: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] adding python modules 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_p...@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@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core >> -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core