diff options
author | Martin Kelly <mkelly@xevo.com> | 2018-06-01 14:02:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-04 15:15:00 +0100 |
commit | 5e12d1f55f32c0a41c41eee2d8163d4737b31bb4 (patch) | |
tree | 535f90ad0a72f168e7823b0f99582c9e4c193ad0 /meta/recipes-devtools/python/python_2.7.14.bb | |
parent | 34bb96016081d03c2661d7e8bbca884383cc5bf5 (diff) | |
download | poky-5e12d1f55f32c0a41c41eee2d8163d4737b31bb4.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools/python/python_2.7.14.bb')
-rw-r--r-- | meta/recipes-devtools/python/python_2.7.14.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.14.bb b/meta/recipes-devtools/python/python_2.7.14.bb index 41a8609b15..b923b9237b 100644 --- a/meta/recipes-devtools/python/python_2.7.14.bb +++ b/meta/recipes-devtools/python/python_2.7.14.bb | |||
@@ -130,7 +130,7 @@ do_install() { | |||
130 | } | 130 | } |
131 | 131 | ||
132 | do_install_append_class-nativesdk () { | 132 | do_install_append_class-nativesdk () { |
133 | create_wrapper ${D}${bindir}/python2.7 PYTHONHOME='${prefix}' TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' | 133 | create_wrapper ${D}${bindir}/python2.7 PYTHONHOME='${prefix}' TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1' |
134 | } | 134 | } |
135 | 135 | ||
136 | SSTATE_SCAN_FILES += "Makefile" | 136 | SSTATE_SCAN_FILES += "Makefile" |