]> code.ossystems Code Review - openembedded-core.git/commit
nativesdk-python*: suppress user site dirs
authorMartin Kelly <mkelly@xevo.com>
Fri, 1 Jun 2018 21:02:35 +0000 (14:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Jul 2018 09:40:33 +0000 (10:40 +0100)
commit376827d359a3769ee6477eac6e6b349a2050a867
tree9b0b8e2880db247512b74b4c6edac17bf8f02beb
parent5a3dec9fb42838ddfec7c0b216367bf4c9a32db6
nativesdk-python*: suppress user site dirs

Currently, $HOME/.local is being added into sys.path in the Python SDK
causing subtle host contamination. Suppress this by exporting
PYTHONNOUSERSITE = "1" as documented in PEP 370.

This issue occurred in the past for python*-native and was fixed
similarly in OE-core commit 8fe9fb4d5a61dcbcb3fc5b9ee0234cc135af873f
("python*native.bbclass: suppress user site dirs").

(From OE-Core rev: 0dc36439cb9fe1cea50bed59da6302f78372a30b)

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/python/python-scons-native_3.0.1.bb
meta/recipes-devtools/python/python3_3.5.5.bb
meta/recipes-devtools/python/python_2.7.14.bb