diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-03-02 23:35:00 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-03-30 12:19:04 +0800 |
| commit | 6ef46bb9194b5d3f5fc17471d8869bcae729d215 (patch) | |
| tree | 5b4aacef29f618a414222f334596a3e14b4f2247 /lang/python/python3-package.mk | |
| parent | c7331194cb93a5d459e0ef9ea9af99a01f1eef1d (diff) | |
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>
Diffstat (limited to 'lang/python/python3-package.mk')
| -rw-r--r-- | lang/python/python3-package.mk | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lang/python/python3-package.mk b/lang/python/python3-package.mk index a24892ac5..8477d8c75 100644 --- a/lang/python/python3-package.mk +++ b/lang/python/python3-package.mk @@ -42,7 +42,6 @@ PYTHON3_VARS = \ __PYVENV_LAUNCHER__="/usr/bin/$(PYTHON3)" \ PYTHONPATH="$(PYTHON3PATH)" \ PYTHONDONTWRITEBYTECODE=1 \ - PYTHONOPTIMIZE="" \ _python_sysroot="$(STAGING_DIR)" \ _python_prefix="/usr" \ _python_exec_prefix="/usr" |
