All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abhi Arora <abhiarora4@live.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Reducing the size of the image by optimizing python
Date: Sat, 19 Oct 2019 12:45:42 +0000	[thread overview]
Message-ID: <MAXPR01MB2206466821B5D2748ADF3F09FA6F0@MAXPR01MB2206.INDPRD01.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAMKF1sofAn-D104y=Aj2SQuvjrnLqoQjcpRRL3oNjTrXw75d3w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]

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@gmail.com>
Sent: Friday, October 18, 2019 2:28:23 PM
To: Abhi Arora <abhiarora4@live.com>
Cc: yocto@yoctoproject.org <yocto@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@live.com<mailto:abhiarora4@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@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto

[-- Attachment #2: Type: text/html, Size: 6749 bytes --]

  reply	other threads:[~2019-10-19 12:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18  7:49 Reducing the size of the image by optimizing python Abhi Arora
2019-10-18  8:58 ` Khem Raj
2019-10-19 12:45   ` Abhi Arora [this message]
2019-10-19 14:34     ` Richard Purdie
2019-10-19 14:55       ` Abhi Arora
2019-10-19 15:10         ` richard.purdie
2019-10-19 15:21           ` Yann Dirson
2019-10-19 16:32             ` Abhi Arora
2019-10-20 10:59               ` Josef Holzmayr
2019-10-20 15:29                 ` Abhi Arora
     [not found]           ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.4240ac9c-b01f-45e6-9070-5b2736653819@emailsignatures365.codetwo.com>
     [not found]             ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.bf5d2683-0b1e-4651-b4bc-cad3e441cbf0@emailsignatures365.codetwo.com>
2019-10-21 11:50               ` Mike Looijmans
2019-10-21  9:09     ` Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MAXPR01MB2206466821B5D2748ADF3F09FA6F0@MAXPR01MB2206.INDPRD01.PROD.OUTLOOK.COM \
    --to=abhiarora4@live.com \
    --cc=raj.khem@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.