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

Abhi Arora abhiarora4 at live.com
Sat Oct 19 05:45:42 PDT 2019


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.

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: Khem Raj <raj.khem at gmail.com>
Sent: Friday, October 18, 2019 2:28:23 PM
To: Abhi Arora <abhiarora4 at live.com>
Cc: yocto at yoctoproject.org <yocto at yoctoproject.org>
Subject: Re: [yocto] Reducing the size of the image by optimizing python



On Fri, Oct 18, 2019 at 1:21 PM Abhi Arora <abhiarora4 at live.com<mailto:abhiarora4 at live.com>> 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 to reduce the footprint.

Please start by eliminating modules first so find which modules are required for your workloads and remove all other modules from image by adding them to BAD_RECOMMENDATIONS from IMAGE_INSTALL


Please help.

Get Outlook for Android<https://aka.ms/ghei36>

--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191019/26cbacdb/attachment.html>


More information about the yocto mailing list