Re: [yocto] Removing Python2 Completely

2020-08-28 Thread Aashik Aswin
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.pijanow...@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.pijanow...@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
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50401): https://lists.yoctoproject.org/g/yocto/message/50401
Mute This Topic: https://lists.yoctoproject.org/mt/76468916/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [yocto] Removing Python2 Completely

2020-08-28 Thread Maciej Pijanowski


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, 
mailto:maciej.pijanow...@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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50396): https://lists.yoctoproject.org/g/yocto/message/50396
Mute This Topic: https://lists.yoctoproject.org/mt/76468916/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [yocto] Removing Python2 Completely

2020-08-28 Thread Maciej Pijanowski


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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50395): https://lists.yoctoproject.org/g/yocto/message/50395
Mute This Topic: https://lists.yoctoproject.org/mt/76468916/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[yocto] Removing Python2 Completely

2020-08-28 Thread Aashik Aswin
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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50394): https://lists.yoctoproject.org/g/yocto/message/50394
Mute This Topic: https://lists.yoctoproject.org/mt/76468916/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-