public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [scarthgap][master][PATCH] python3: provide /usr/bin/python as a symlink to python3
@ 2024-07-17  2:32 jiaying.song.cn
  2024-07-18 22:47 ` [OE-core] " Denys Dmytriyenko
  2024-07-24 16:01 ` Richard Purdie
  0 siblings, 2 replies; 15+ messages in thread
From: jiaying.song.cn @ 2024-07-17  2:32 UTC (permalink / raw)
  To: openembedded-core; +Cc: alex.kanavin

From: Jiaying Song <jiaying.song.cn@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.cn@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



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

end of thread, other threads:[~2024-07-24 16:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17  2:32 [scarthgap][master][PATCH] python3: provide /usr/bin/python as a symlink to python3 jiaying.song.cn
2024-07-18 22:47 ` [OE-core] " Denys Dmytriyenko
2024-07-19  6:17   ` Alexander Kanavin
2024-07-19  6:18     ` Alexander Kanavin
2024-07-19 16:46       ` Denys Dmytriyenko
2024-07-23 13:38         ` Konrad Weihmann
2024-07-23 16:44           ` [OE-core] " Randy MacLeod
2024-07-23 17:56             ` Alexander Kanavin
2024-07-23 18:18               ` Konrad Weihmann
2024-07-23 18:25                 ` Alexander Kanavin
2024-07-23 18:41               ` Randy MacLeod
2024-07-24 16:01 ` Richard Purdie
2024-07-24 16:17   ` Alexander Kanavin
2024-07-24 16:36     ` Martin Jansa
2024-07-24 16:44       ` Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox