mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 00:38:45 +01:00
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>
9 lines
252 B
BlitzBasic
9 lines
252 B
BlitzBasic
require python-scons_${PV}.bb
|
|
inherit native pythonnative
|
|
DEPENDS = "python-native"
|
|
RDEPENDS_${PN} = ""
|
|
|
|
do_install_append() {
|
|
create_wrapper ${D}${bindir}/scons SCONS_LIB_DIR='${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}' PYTHONNOUSERSITE='1'
|
|
}
|