xtensa-build-zephyr.py: abort when python version < 3.8

shlex.join() requires 3.8, maybe others too. 3.8 is 3 years old and it's
the default Python version in Ubuntu 20.04

Fixes #6121

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-08-18 06:49:41 -07:00 committed by Liam Girdwood
parent 5e43688bb5
commit 3c6dcdb574
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ import warnings
from anytree import AnyNode, RenderTree
from packaging import version
MIN_PYTHON_VERSION = 3, 8
assert sys.version_info >= MIN_PYTHON_VERSION, \
f"Python {MIN_PYTHON_VERSION} or above is required."
# Version of this script matching Major.Minor.Patch style.
VERSION = version.Version("2.0.0")