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 <jiaying.song...@windriver.com> > > 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 <jiaying.song...@windriver.com> > --- > 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 (#202240): https://lists.openembedded.org/g/openembedded-core/message/202240 Mute This Topic: https://lists.openembedded.org/mt/107264938/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-