All of lore.kernel.org
 help / color / mirror / Atom feed
* Removing Python2 Completely
@ 2020-08-28  7:04 thisisaash9698
  2020-08-28  7:07 ` [yocto] " Maciej Pijanowski
  0 siblings, 1 reply; 4+ messages in thread
From: thisisaash9698 @ 2020-08-28  7:04 UTC (permalink / raw)
  To: yocto

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

Hi,

I am trying to remove Python2 and it's supporting modules completely from
my Image, as I have moved all my code to Python3 and hence no longer
require Python2. I tried the IMAGE_INSTALL_remove variable but seems to
have no effect. Is there a way I can remove Python2 without much changes to
the layers and through configuration variables only ?

Please point me to the correct mailer if  I am wrong.

Thanks,
Aashik

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] Removing Python2 Completely
  2020-08-28  7:04 Removing Python2 Completely thisisaash9698
@ 2020-08-28  7:07 ` Maciej Pijanowski
       [not found]   ` <CANVQz1aQH1DRheyAE70y+PuGMs9OZ6hhMGR=CkjpyMnP2e5rhQ@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Maciej Pijanowski @ 2020-08-28  7:07 UTC (permalink / raw)
  To: yocto

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


On 28.08.2020 09:04, Aashik Aswin wrote:
> Hi,
>
> I am trying to remove Python2 and it's supporting modules completely 
> from my Image, as I have moved all my code to Python3 and hence no 
> longer require Python2. I tried the IMAGE_INSTALL_remove variable but 
> seems to have no effect. Is there a way I can remove Python2 without 
> much changes to the layers and through configuration variables only ?

You can see what is pulling the python2 to the image (using the bitbake 
-g for example).

Which Yocto release are you using? I believe the latest one (Dunfell) is 
already python3 only.


>
> Please point me to the correct mailer if  I am wrong.
>
> Thanks,
> Aashik
>
> 

-- 
Maciej Pijanowski
Embedded Systems Engineer
GPG: 9963C36AAC3B2B46
https://3mdeb.com | @3mdeb_com


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] Removing Python2 Completely
       [not found]   ` <CANVQz1aQH1DRheyAE70y+PuGMs9OZ6hhMGR=CkjpyMnP2e5rhQ@mail.gmail.com>
@ 2020-08-28  7:14     ` Maciej Pijanowski
  2020-08-28 11:13       ` Aashik Aswin
  0 siblings, 1 reply; 4+ messages in thread
From: Maciej Pijanowski @ 2020-08-28  7:14 UTC (permalink / raw)
  To: Aashik Aswin, yocto

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


On 28.08.2020 09:10, Aashik Aswin wrote:
> Hi,
> I am currently using Yocto Zeus. So is it safe to say that if we 
> remove all the Python2 calls from image, that itself will remove 
> Python2 overall ?

If you want to remove python2 from the image, you need to make sure that 
no other package installed
to the image RDEPENDS (runtime dependency) on it. I would start with 
checking what still pulls the
python2 to your image.

https://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#usingpoky-debugging-dependencies

Also, please reply to the list, not directly to just me.

>
> Thanks,
> Aashik
>
> On Fri 28 Aug, 2020, 12:37 PM Maciej Pijanowski, 
> <maciej.pijanowski@3mdeb.com <mailto:maciej.pijanowski@3mdeb.com>> wrote:
>
>
>     On 28.08.2020 09:04, Aashik Aswin wrote:
>>     Hi,
>>
>>     I am trying to remove Python2 and it's supporting modules
>>     completely from my Image, as I have moved all my code to Python3
>>     and hence no longer require Python2. I tried the
>>     IMAGE_INSTALL_remove variable but seems to have no effect. Is
>>     there a way I can remove Python2 without much changes to the
>>     layers and through configuration variables only ?
>
>     You can see what is pulling the python2 to the image (using the
>     bitbake -g for example).
>
>     Which Yocto release are you using? I believe the latest one
>     (Dunfell) is already python3 only.
>
>
>>
>>     Please point me to the correct mailer if  I am wrong.
>>
>>     Thanks,
>>     Aashik
>>
>     -- 
>     Maciej Pijanowski
>     Embedded Systems Engineer
>     GPG: 9963C36AAC3B2B46
>     https://3mdeb.com  | @3mdeb_com
>
>     
>
-- 
Maciej Pijanowski
Embedded Systems Engineer
GPG: 9963C36AAC3B2B46
https://3mdeb.com | @3mdeb_com


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] Removing Python2 Completely
  2020-08-28  7:14     ` Maciej Pijanowski
@ 2020-08-28 11:13       ` Aashik Aswin
  0 siblings, 0 replies; 4+ messages in thread
From: Aashik Aswin @ 2020-08-28 11:13 UTC (permalink / raw)
  To: Maciej Pijanowski; +Cc: yocto

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

Thanks,

Now I am able to see only python-core remaining in the RootFS Manifest and
Image size has decreased by nearly 10 MB.

Thanks,
Aashik

On Fri, Aug 28, 2020 at 12:44 PM Maciej Pijanowski <
maciej.pijanowski@3mdeb.com> wrote:

>
> On 28.08.2020 09:10, Aashik Aswin wrote:
>
> Hi,
>
> I am currently using Yocto Zeus. So is it safe to say that if we remove
> all the Python2 calls from image, that itself will remove Python2 overall ?
>
>
> If you want to remove python2 from the image, you need to make sure that
> no other package installed
> to the image RDEPENDS (runtime dependency) on it. I would start with
> checking what still pulls the
> python2 to your image.
>
>
> https://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#usingpoky-debugging-dependencies
>
> Also, please reply to the list, not directly to just me.
>
>
> Thanks,
> Aashik
>
> On Fri 28 Aug, 2020, 12:37 PM Maciej Pijanowski, <
> maciej.pijanowski@3mdeb.com> wrote:
>
>>
>> On 28.08.2020 09:04, Aashik Aswin wrote:
>>
>> Hi,
>>
>> I am trying to remove Python2 and it's supporting modules completely from
>> my Image, as I have moved all my code to Python3 and hence no longer
>> require Python2. I tried the IMAGE_INSTALL_remove variable but seems to
>> have no effect. Is there a way I can remove Python2 without much changes to
>> the layers and through configuration variables only ?
>>
>> You can see what is pulling the python2 to the image (using the bitbake
>> -g for example).
>>
>> Which Yocto release are you using? I believe the latest one (Dunfell) is
>> already python3 only.
>>
>>
>>
>> Please point me to the correct mailer if  I am wrong.
>>
>> Thanks,
>> Aashik
>>
>> --
>> Maciej Pijanowski
>> Embedded Systems Engineer
>> GPG: 9963C36AAC3B2B46https://3mdeb.com | @3mdeb_com
>>
>> 
>>
> --
> Maciej Pijanowski
> Embedded Systems Engineer
> GPG: 9963C36AAC3B2B46https://3mdeb.com | @3mdeb_com
>
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-28 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28  7:04 Removing Python2 Completely thisisaash9698
2020-08-28  7:07 ` [yocto] " Maciej Pijanowski
     [not found]   ` <CANVQz1aQH1DRheyAE70y+PuGMs9OZ6hhMGR=CkjpyMnP2e5rhQ@mail.gmail.com>
2020-08-28  7:14     ` Maciej Pijanowski
2020-08-28 11:13       ` Aashik Aswin

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.