[almanah/wip/jtojnar/meson-bump: 2/2] build: Switch to more modern python module



commit d5bf617e705cc8a1162320711eab391727ee5d4f
Author: Jan Tojnar <jtojnar gmail com>
Date:   Tue May 5 04:07:12 2020 +0200

    build: Switch to more modern python module
    
    python3 module is deprecated since Meson 0.48.0

 meson.build | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index ae54474..612349c 100644
--- a/meson.build
+++ b/meson.build
@@ -12,10 +12,8 @@ project(
 cc = meson.get_compiler('c')
 gnome = import('gnome')
 i18n = import('i18n')
-python3 = import('python3')
-# TODO: switch to python module once meson 0.50 is released
-# https://github.com/mesonbuild/meson/issues/4070
-python = python3.find_python().path()
+python = import('python')
+python3 = python.find_installation('python3').path()
 data_dir = join_paths(meson.source_root(), 'data')
 po_dir = join_paths(meson.source_root(), 'po')
 
@@ -107,7 +105,7 @@ config = vcs_tag(
 
 # Post-install scripts
 meson.add_install_script(
-  python,
+  python3,
   join_paths(meson.source_root(), 'build-aux', 'post_install.py'),
   icondir,
   schemadir,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]