diff options
| author | Martin Kelly <mkelly@xevo.com> | 2018-06-01 14:02:35 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-03 23:47:49 +0100 |
| commit | 0dc36439cb9fe1cea50bed59da6302f78372a30b (patch) | |
| tree | 7c8a3b3dfb60e8e7ad6deacce0ceffe901575f9a /meta/recipes-devtools/python/python3_3.5.5.bb | |
| parent | c455ec4a12d4966524da9436722476aa2d428765 (diff) | |
| download | openembedded-core-0dc36439cb9fe1cea50bed59da6302f78372a30b.tar.gz openembedded-core-0dc36439cb9fe1cea50bed59da6302f78372a30b.tar.bz2 openembedded-core-0dc36439cb9fe1cea50bed59da6302f78372a30b.zip | |
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 <mkelly@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.5.5.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.5.5.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3_3.5.5.bb b/meta/recipes-devtools/python/python3_3.5.5.bb index f893b846ad..4dae4fa4c6 100644 --- a/meta/recipes-devtools/python/python3_3.5.5.bb +++ b/meta/recipes-devtools/python/python3_3.5.5.bb @@ -176,7 +176,7 @@ do_install() { } do_install_append_class-nativesdk () { - create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' + 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" |
