From 0dc36439cb9fe1cea50bed59da6302f78372a30b Mon Sep 17 00:00:00 2001 From: Martin Kelly Date: Fri, 1 Jun 2018 14:02:35 -0700 Subject: 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"). Signed-off-by: Martin Kelly Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python-scons-native_3.0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-devtools/python/python-scons-native_3.0.1.bb') diff --git a/meta/recipes-devtools/python/python-scons-native_3.0.1.bb b/meta/recipes-devtools/python/python-scons-native_3.0.1.bb index dae89ab5d2..68b63c9357 100644 --- a/meta/recipes-devtools/python/python-scons-native_3.0.1.bb +++ b/meta/recipes-devtools/python/python-scons-native_3.0.1.bb @@ -4,5 +4,5 @@ DEPENDS = "python-native" RDEPENDS_${PN} = "" do_install_append() { - create_wrapper ${D}${bindir}/scons SCONS_LIB_DIR='${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}' + create_wrapper ${D}${bindir}/scons SCONS_LIB_DIR='${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}' PYTHONNOUSERSITE='1' } -- cgit v1.2.3