meson: use new 'python' module instead of deprecated
authorTim-Philipp Müller <tim@centricular.com>
Mon, 8 Oct 2018 00:07:45 +0000 (01:07 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 8 Oct 2018 00:07:45 +0000 (01:07 +0100)
https://github.com/mesonbuild/meson/pull/4169

meson.build

index d1c31a6..adb04b9 100644 (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")')