meson: Search for python3 before python for bin/meson_get_version.py
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 17 Aug 2021 08:01:40 +0000 (01:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Aug 2021 09:45:54 +0000 (09:45 +0000)
commit221871fb6da0a16bf47847040257bdb677042306
tree802ecff8d3173f06be40edc29d6555adaf1d9e57
parentadfd3f8cd41ccbbc1dfb7185ef8776bb77da5643
meson: Search for python3 before python for bin/meson_get_version.py

Most systems have either dropped the python executable, or made it
python3.

But it is still possible to configure a system such that python runs
python2. https://www.python.org/dev/peps/pep-0394/

Or, some developers may still be running older distributions where
python is python2.

Since bin/meson_get_version.py now requires python3, we should search
for python3 before python.

Fixes: f1eae2f8bbe ("python: drop python2 support")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12400>
meson.build