There was a proposal with two option (maybe that was missed) and I
suggested just adding the link and be done with it. We can drop lots of
patches and send tweaks then.

Alex

On Fri 19. Jul 2024 at 8.17, Alexander Kanavin <[email protected]>
wrote:

> But there is no alternative. Python is python3 and has been for years.
>
> Alex
>
> On Fri 19. Jul 2024 at 0.47, Denys Dmytriyenko <[email protected]> wrote:
>
>> Should this be done via update-alternatives, like many other Linux
>> distros do?
>>
>>
>> On Wed, Jul 17, 2024 at 10:32:01AM +0800, Song, Jiaying (CN) via
>> lists.openembedded.org wrote:
>> > From: Jiaying Song <[email protected]>
>> >
>> > The /usr/bin/python cannot find the correct Python interpreter, so a
>> symbolic
>> > link is added to point it to the Python3 interpreter.
>> >
>> > Signed-off-by: Jiaying Song <[email protected]>
>> > ---
>> >  meta/recipes-devtools/python/python3/python3-manifest.json | 1 +
>> >  meta/recipes-devtools/python/python3_3.12.4.bb             | 1 +
>> >  2 files changed, 2 insertions(+)
>> >
>> > diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json
>> b/meta/recipes-devtools/python/python3/python3-manifest.json
>> > index 46092d4004..f9259e1450 100644
>> > --- a/meta/recipes-devtools/python/python3/python3-manifest.json
>> > +++ b/meta/recipes-devtools/python/python3/python3-manifest.json
>> > @@ -220,6 +220,7 @@
>> >          "files": [
>> >              "${bindir}/python${PYTHON_MAJMIN}",
>> >              "${bindir}/python${PYTHON_MAJMIN}.real",
>> > +            "${bindir}/python",
>> >              "${bindir}/python3",
>> >              "${includedir}/python${PYTHON_MAJMIN}/pyconfig*.h",
>> >              "${libdir}/python${PYTHON_MAJMIN}/UserDict.py",
>> > diff --git a/meta/recipes-devtools/python/python3_3.12.4.bb
>> b/meta/recipes-devtools/python/python3_3.12.4.bb
>> > index 743ba0b1f1..94535e7678 100644
>> > --- a/meta/recipes-devtools/python/python3_3.12.4.bb
>> > +++ b/meta/recipes-devtools/python/python3_3.12.4.bb
>> > @@ -165,6 +165,7 @@ do_install:prepend() {
>> >
>> >  do_install:append:class-target() {
>> >          oe_multilib_header python${PYTHON_MAJMIN}/pyconfig.h
>> > +        ln -sf ${bindir}/python3 ${D}${bindir}/python
>> >  }
>> >
>> >  do_install:append:class-native() {
>> > --
>> > 2.44.0
>>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#202249): 
https://lists.openembedded.org/g/openembedded-core/message/202249
Mute This Topic: https://lists.openembedded.org/mt/107264938/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to