]> code.ossystems Code Review - openembedded-core.git/commit
Adding back wrapper and using OEPYTHON3HOME variable for python3
authorJaewon Lee <jaewon.lee@xilinx.com>
Thu, 25 Apr 2019 23:02:21 +0000 (16:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Apr 2019 09:23:24 +0000 (10:23 +0100)
commit75d2a85e24ef9a2bf0e218521944523f0ff281e0
treed5bcefa0d827ca074651c9a771c23c0b04e4d52f
parent8e9e352a0c16296cd8a530a8bccfa138b9f04040
Adding back wrapper and using OEPYTHON3HOME variable for python3

Adding back the python wrapper and adding a patch to use OEPYTHON3HOME
instead of PYTHONHOME if set, for python3.

If we add back the wrapper as is, we would see the following error that
we also see in Thud:

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

This is because python3 would've set PYTHONHOME to use nativesdk
python3 libraries but when the oe-buildenv-internal script tries to call
python2 for the py_v27_check, there will be no python2 libraries in the
PYTHONHOME directory.
In other words, bitbake needs host python2 and the env variable set from
the wrapper contaminates the env and host python2 won't be able to find
its libraries

Creating another variable OEPYTHON3HOME and using this in the python3
wrapper to allow for a way to set a different paths for python3 and
python2

[YOCTO #13208]

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.7.3.bb