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

Abhi Arora abhiarora4 at live.com
Sun Oct 20 08:29:03 PDT 2019


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<https://aka.ms/ghei36>

________________________________
From: Josef Holzmayr <holzmayr at rsi-elektrotechnik.de>
Sent: Sunday, October 20, 2019 4:29:00 PM
To: Abhi Arora <abhiarora4 at live.com>
Cc: Yann Dirson <yann.dirson at blade-group.com>; richard.purdie at linuxfoundation.org <richard.purdie at linuxfoundation.org>; yocto at yoctoproject.org <yocto at yoctoproject.org>
Subject: Re: [yocto] Reducing the size of the image by optimizing python

On Sat, Oct 19, 2019 at 04:32:26PM +0000, 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 python3-misc and what it installs.

Its not something that directly corresponds to a standard desktop
distribution. Rather, its "everything that would otherwise be left
behind", see:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3_3.7.4.bb#n323

So its just like the advice was already: remove it, see what breaks, and
then add smaller bits and pieces again until everything works as
desired.

Greetz
>
>
>
> Get Outlook for Android<https://aka.ms/ghei36>
>
> ________________________________
> From: Yann Dirson <yann.dirson at blade-group.com>
> Sent: Saturday, October 19, 2019 8:51:52 PM
> To: richard.purdie at linuxfoundation.org <richard.purdie at linuxfoundation.org>
> Cc: Abhi Arora <abhiarora4 at live.com>; Khem Raj <raj.khem at gmail.com>; yocto at yoctoproject.org <yocto at yoctoproject.org>
> Subject: Re: [yocto] Reducing the size of the image by optimizing python
>
> 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.purdie at linuxfoundation.org
> <richard.purdie at linuxfoundation.org>:
> > On Sat, 2019-10-19 at 14:55 +0000, 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. You can look at its dependencies to see what
> > it adds to the image.
> >
> >> And how about optimization using pyc file? Is it doable?
> >
> > Start simple. If you have python3-misc installed its using a lot of
> > space and is the sensible place to start with trimming things down.
> >
> > Optimising to just pyc files is an optimisation further than most
> > people find they need and will be much harder to do.
> >
> > Cheers,
> >
> > Richard
> >
> >
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
>
> --
> Yann Dirson <yann at blade-group.com>
> Blade / Shadow -- http://shadow.tech

> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de<http://www.rsi-elektrotechnik.de>
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191020/c60faf89/attachment.html>


More information about the yocto mailing list