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

meson.build

index 7f786e91a28b68765f4753db86b18e75d0972d5b..6f7cbeda9e808f806685803dca90d1eccbdaca47 100644 (file)
@@ -257,5 +257,5 @@ endif
 
 configure_file(output : 'config.h', configuration : cdata)
 
-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")')