Re: [yocto] Reducing the size of the image by optimizing python

2019-10-21 Thread Mike Looijmans
> Optimising to just pyc files is an optimisation further than most > people find they need and will be much harder to do. It's actually quite simple, just add a bbappend to the python recipe that puts all .py files into the "dbg" or newly created "src" package. Or simply delete all .py files

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-21 Thread Ross Burton
On 19/10/2019 13:45, Abhi Arora wrote: IMAGE_INSTALL_append = " \     python3 \ This is installing "all of python". If you want to trim your Python installation then don't do that, instead determine what libraries you *actually* need and explicitly add those. Ross --

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-20 Thread Abhi Arora
Hello, I have listed the python modules and packages that I don't want. Someone recommended to list them with BAD_RECOMMENDATION. Can someone help me where this variable should go? Thank you. Get Outlook for Android From: Josef Holzmayr

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-20 Thread Josef Holzmayr
On Sat, Oct 19, 2019 at 04:32:26PM +, Abhi Arora wrote: > I am planning to install it in my host machine and see if I am able to run my > scripts and manually add or remove modules and python packages to get minimal > required system for my scripts. > > For that I need to access

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-19 Thread Abhi Arora
Thank you for being patient. I am unable to find out python3-misc package online. Neither "sudo apt-get install python3-misc" helps me nor "pip install python3-misc". I am a newbie, please help me what kind of package it is and where to find it. I am planning to install it in my host machine

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-19 Thread Yann Dirson
You can also look at the package dependency graph (see the file generated by bitbake -g) to get a better idea of what pulls what. 2019-10-19 17:10 UTC+02:00, richard.pur...@linuxfoundation.org : > On Sat, 2019-10-19 at 14:55 +, Abhi Arora wrote: >> Thanks your for the suggestion. >> >> From

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-19 Thread richard . purdie
On Sat, 2019-10-19 at 14:55 +, Abhi Arora wrote: > Thanks your for the suggestion. > > From where I can find out what modules and packages python3-misc > downloads and installs? I am new to yocto and Don't know where to > look for. I tried grep but didn't help me. python3-misc is a package.

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-19 Thread Abhi Arora
Thanks your for the suggestion. >From where I can find out what modules and packages python3-misc downloads and >installs? I am new to yocto and Don't know where to look for. I tried grep but >didn't help me. And how about optimization using pyc file? Is it doable? Get Outlook for

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-19 Thread Richard Purdie
On Sat, 2019-10-19 at 12:45 +, Abhi Arora wrote: > Thanks for the reply. Can you help me which file to modify to prevent > downloading certain packages and modules using BAD_RECOMMENDATION? > > And how to have only pyc files in the final image to improve speed > and reduce footprint? > >

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-19 Thread Abhi Arora
Thanks for the reply. Can you help me which file to modify to prevent downloading certain packages and modules using BAD_RECOMMENDATION? And how to have only pyc files in the final image to improve speed and reduce footprint? Following are the lines in my yocto project which install python

Re: [yocto] Reducing the size of the image by optimizing python

2019-10-18 Thread Khem Raj
On Fri, Oct 18, 2019 at 1:21 PM Abhi Arora wrote: > Hello, > I am having an embedded system. We have bsp with python 3.5 but we want to > reduce its size further. I am planning to have only oyc files but not sure > how it can be achieved in recipes. Also, I want to know if there is a other > way