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

Abhi Arora abhiarora4 at live.com
Sat Oct 19 07:55:04 PDT 2019


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

________________________________
From: Richard Purdie <richard.purdie at linuxfoundation.org>
Sent: Saturday, October 19, 2019 8:04:58 PM
To: Abhi Arora <abhiarora4 at live.com>; Khem Raj <raj.khem at gmail.com>
Cc: yocto at yoctoproject.org <yocto at yoctoproject.org>
Subject: Re: [yocto] Reducing the size of the image by optimizing python

On Sat, 2019-10-19 at 12:45 +0000, 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?
>
> Following are the lines in my yocto project which install python
> packages.
>
> IMAGE_INSTALL_append = " \
>     python3 \
>     python3-core \
>     python3-misc \
>     python3-async \
>     python3-six \
>     python3-websockets \
>     python3-requests \
>     python3-urllib3 \
>     python3-chardet \
>     python3-websocket-client \
>     python3-pyopenssl \
>     python3-simplejson \
>     python3-cython \
>
> Pardon for some stupid questions as I am new to yocto.

Take python3-misc out that list as its huge. See if anything breaks, if
so, try and install just what you need, not the large "catchall"
package.

Cheers,

Richard

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


More information about the yocto mailing list