________________________________
From: Alexander Kanavin <[email protected]>
Sent: November 3, 2022 3:00 PM
To: Sajal, Sakib <[email protected]>
Cc: [email protected] 
<[email protected]>
Subject: Re: [OE-core] [PATCH] blktrace: ask for python3 specifically


On Thu, 3 Nov 2022 at 19:34, Sakib Sajal <[email protected]> wrote:
>>
>> python2 has been deprecated, use python3 instead
>>
>> +Upstream-Status: Inappropriate (OE-specific)
>
>This is not inappropriate, or oe-specific, please send the patch upstream 
>first.
>
>Alex

I have already sent a patch to upstream blktrace which was rejected:
https://www.spinics.net/lists/linux-btrace/msg01364.html

In summary, upstream maintainers see the following on their distro:

axboe@m1max ~> which python
/usr/bin/python
axboe@m1max ~> /usr/bin/python --version
Python 3.10.7
axboe@m1max ~> env python
Python 3.10.7 (main, Sep  8 2022, 14:34:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

while on yocto:
root@qemux86-64:~# which python
root@qemux86-64:~# which python3
/usr/bin/python3
root@qemux86-64:~# /usr/bin/python3 --version
Python 3.11.0
root@qemux86-64:~# env python
env: can't execute 'python': No such file or directory
root@qemux86-64:~# env python3
Python 3.11.0 (main, Oct 24 2022, 17:48:40) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

python symlink to python3 is not required by python development community and 
is a choice left for distributions to make. If you look at oe-core, most, if 
not all, packages are changing the shebang to python3:
oe-core.git$ grep -r "env python3" | wc -l
166

Regards,
Sakib
Re: [PATCH] bno_plot.py: Ask for python3 specifically &mdash; Linux 
Btrace<https://www.spinics.net/lists/linux-btrace/msg01364.html>
Linux Btrace: Re: [PATCH] bno_plot.py: Ask for python3 specifically
www.spinics.net

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#173393): 
https://lists.openembedded.org/g/openembedded-core/message/173393
Mute This Topic: https://lists.openembedded.org/mt/94790255/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to