build: Bump Python requirement to ≥ 3.5

We already depend on Meson 0.49.2, which depends on Python 3.5, so we’ve
actually implicitly had this requirement for a while. Might as well make
it explicit.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-09-30 11:23:20 +01:00
parent 6192fd4cc0
commit bbbdc27151

View File

@ -1994,7 +1994,7 @@ python = import('python').find_installation('python3')
python_name = 'python3' python_name = 'python3'
python_version = python.language_version() python_version = python.language_version()
python_version_req = '>=3.4' python_version_req = '>=3.5'
if not python_version.version_compare(python_version_req) if not python_version.version_compare(python_version_req)
error('Requires Python @0@, @1@ found.'.format(python_version_req, python_version)) error('Requires Python @0@, @1@ found.'.format(python_version_req, python_version))
endif endif