summaryrefslogtreecommitdiffstats
path: root/meta/classes/pythonnative.bbclass
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2017-09-12 14:03:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-14 11:35:46 +0100
commit7c1fb3073da5f4f0bd473bcbc1cd48bb24f4f2d7 (patch)
tree20a42e3bf2809522ad94369e92099e2483f9cd97 /meta/classes/pythonnative.bbclass
parent9376bbc8a04ced3c0973805e6cb2529b6db03076 (diff)
downloadpoky-7c1fb3073da5f4f0bd473bcbc1cd48bb24f4f2d7.tar.gz
python*native.bbclass: suppress user site dirs
Currently, $HOME/.local is being added into sys.path for the native Python, causing subtle host contamination. Suppress this by exporting PYTHONNOUSERSITE = "1" as documented in PEP 370. (From OE-Core rev: 8fe9fb4d5a61dcbcb3fc5b9ee0234cc135af873f) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/pythonnative.bbclass')
-rw-r--r--meta/classes/pythonnative.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass
index 4e0381b568..4cc8b2769c 100644
--- a/meta/classes/pythonnative.bbclass
+++ b/meta/classes/pythonnative.bbclass
@@ -12,5 +12,8 @@ DEPENDS_append = " ${PYTHON_PN}-native "
12export STAGING_INCDIR 12export STAGING_INCDIR
13export STAGING_LIBDIR 13export STAGING_LIBDIR
14 14
15# suppress host user's site-packages dirs.
16export PYTHONNOUSERSITE = "1"
17
15# autoconf macros will use their internal default preference otherwise 18# autoconf macros will use their internal default preference otherwise
16export PYTHON 19export PYTHON