]> code.ossystems Code Review - openembedded-core.git/commit
python*native.bbclass: suppress user site dirs
authorMartin Kelly <mkelly@xevo.com>
Tue, 12 Sep 2017 21:03:20 +0000 (14:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Sep 2017 22:46:02 +0000 (23:46 +0100)
commit8fe9fb4d5a61dcbcb3fc5b9ee0234cc135af873f
treee825e17771eeda3d0565e664ebc0e1fa798c0d7c
parent7351e0b260876b9bbc8660c2bb4173ab4c130f8b
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.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/python3native.bbclass
meta/classes/pythonnative.bbclass