python: Unset Python environment variables
authorJeffery To <jeffery.to@gmail.com>
Thu, 2 Mar 2023 15:35:00 +0000 (23:35 +0800)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 13 Oct 2023 06:21:12 +0000 (08:21 +0200)
commit912aaaa9cfc9449feabb4239276cfd5c09628638
tree8326ca6aca00b7cc3438674ca946488d01f5842f
parent05342e9897c7cbe3d6f704c35acfa734031bdc4b
python: Unset Python environment variables

This will prevent the user's environment variables from affecting host
Python, removing the need to manually override these variables.

It is also not necessary to set PYTHONPATH (when not working on target
Python packages) because the given directories are already included in
Python's search path by default.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6ef46bb9194b5d3f5fc17471d8869bcae729d215)
lang/python/python3-host.mk
lang/python/python3-package.mk