meson: use new 'python' module instead of deprecated

https://github.com/mesonbuild/meson/pull/4169
This commit is contained in:
Tim-Philipp Müller 2018-10-08 01:07:45 +01:00
parent 85c484a510
commit 1b9ed134d1

View file

@ -401,5 +401,5 @@ endif
# Use core_conf after all subdirs have set values
configure_file(output : 'config.h', configuration : core_conf)
python3 = import('python3').find_python()
python3 = import('python').find_installation()
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')