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 in

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
ef Holzmayr Sent: Sunday, October 20, 2019 4:29:00 PM To: Abhi Arora Cc: Yann Dirson ; richard.pur...@linuxfoundation.org ; yocto@yoctoproject.org Subject: Re: [yocto] Reducing the size of the image by optimizing python On Sat, Oct 19, 2019 at 04:32:26PM +, Abhi Arora wrote: > I am plann

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

2019-10-20 Thread Josef Holzmayr
> Sent: Saturday, October 19, 2019 8:51:52 PM > To: richard.pur...@linuxfoundation.org > Cc: Abhi Arora ; Khem Raj ; > yocto@yoctoproject.org > Subject: Re: [yocto] Reducing the size of the image by optimizing python > > You can also look at the package dependency graph (s

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

2019-10-19 Thread Abhi Arora
___ From: Yann Dirson Sent: Saturday, October 19, 2019 8:51:52 PM To: richard.pur...@linuxfoundation.org Cc: Abhi Arora ; Khem Raj ; yocto@yoctoproject.org Subject: Re: [yocto] Reducing the size of the image by optimizing python You can also look at the package dependency graph

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 wh

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
Outlook for Android<https://aka.ms/ghei36> From: Richard Purdie Sent: Saturday, October 19, 2019 8:04:58 PM To: Abhi Arora ; Khem Raj Cc: yocto@yoctoproject.org Subject: Re: [yocto] Reducing the size of the image by optimizing python On Sat, 2019-10-19 at 12:4

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? > > Fol

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

2019-10-19 Thread Abhi Arora
ejson \ python3-cython \ Pardon for some stupid questions as I am new to yocto. Get Outlook for Android<https://aka.ms/ghei36> From: Khem Raj Sent: Friday, October 18, 2019 2:28:23 PM To: Abhi Arora Cc: yocto@yoctoproject.org Subject: Re: [yocto] Reducing

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

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

2019-10-18 Thread Abhi Arora
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 to reduce the footprint. Please help. Get Outlook for And