meson: use 'python' module to find python instead of deprecated 'python3' one

https://github.com/mesonbuild/meson/pull/4169
This commit is contained in:
Tim-Philipp Müller 2018-10-08 23:25:21 +01:00
parent 13b8c8554d
commit 6837a61450

View file

@ -190,7 +190,7 @@ else:
prefix, 'Lib', 'Python%d%d' % (version.major, version.minor),
'site-packages', 'gi', 'overrides'))
'''
python3 = import('python3').find_python()
python3 = import('python').find_installation()
pygi_override_dir = get_option('pygi-overrides-dir')
if pygi_override_dir == ''
cres = run_command(python3, '-c', override_detector, get_option('prefix'))