All of lore.kernel.org
 help / color / mirror / Atom feed
* [thud][PATCH] python3_3.5.6.bb: Remove setting of PYTHONHOME
@ 2019-03-05 22:29 Jaewon Lee
  0 siblings, 0 replies; only message in thread
From: Jaewon Lee @ 2019-03-05 22:29 UTC (permalink / raw)
  To: openembedded-core

PYTHONHOME was set in python wrapper to 'ensure that the nativesdk
python functions correctly without needing to set PYTHONHOME in the sdk
environment setup script' (From OE-Core rev:c5629268b0f8ae0a425c98337d13e8dc83107e13)
But thud doesnt use python3 libraries from buildtools like python2 does
so oe-buildenv-internal throws the following error when running any
devtool command from an extracted esdk:

ImportError: No module named site
OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.
Please upgrade your python v2.

There is no lib/python3 in the path PYTHONHOME is being set to
( buildtools/sysroots/x86_64.../usr ).
Taking out the setting of PYTHONHOME in the python3 wrapper to get rid
of this issue

[YOCTO #13208]

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
---
 meta/recipes-devtools/python/python3_3.5.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb
index 2cb6504..c2fe943 100644
--- a/meta/recipes-devtools/python/python3_3.5.6.bb
+++ b/meta/recipes-devtools/python/python3_3.5.6.bb
@@ -178,7 +178,7 @@ do_install() {
 }
 
 do_install_append_class-nativesdk () {
-	create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} PYTHONHOME='${prefix}' TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'
+	create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'
 }
 
 SSTATE_SCAN_FILES += "Makefile"
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-07 16:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 22:29 [thud][PATCH] python3_3.5.6.bb: Remove setting of PYTHONHOME Jaewon Lee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.