meson: Raise minimum Python version to 3.9

Gives access to str.removeprefix and str.removesuffix among other
things.

Signed-off-by: Ernst Persson <ernstp@gmail.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36398>
This commit is contained in:
Ernst Persson 2025-07-27 13:35:26 +02:00 committed by Marge Bot
parent 84fb88e5e7
commit 7d7591b37c
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ you're willing to maintain support for other compiler get in touch.
Third party/extra tools.
^^^^^^^^^^^^^^^^^^^^^^^^
- `Python <https://www.python.org/>`__ - Python 3.6 or newer is required.
- `Python <https://www.python.org/>`__ - Python 3.9 or newer is required.
- Python package ``packaging`` is required on Python 3.12+:
``pip install packaging``
- `Python Mako module <https://www.makotemplates.org/>`__ - Python Mako

View file

@ -917,7 +917,7 @@ if get_option('allow-kcmp') \
endif
# On Windows, a venv has no versioned aliased to 'python'.
prog_python = find_program('python3', 'python', version : '>= 3.8')
prog_python = find_program('python3', 'python', version : '>= 3.9')
has_mako = run_command(
prog_python, '-c',