[baobab/wip/jtojnar/meson-py] build: fix Meson python3 module deprecation



commit 8184a920f624dcd262c85fa2c38ba8a1f3f24e08
Author: Jan Tojnar <jtojnar gmail com>
Date:   Thu Apr 23 04:00:07 2020 +0200

    build: fix Meson python3 module deprecation
    
    Meson prints the following warning now:
    
            DEPRECATION: Project targeting '>= 0.41.0' but tried to use feature deprecated since '0.48.0': 
python3 module
    
    Let's switch to the "new" python module to fix that.
    
    This requires new .path() method available since Meson 0.50.0 so we need to increase the requirements.

 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index c5d8295..f75939d 100644
--- a/meson.build
+++ b/meson.build
@@ -7,7 +7,7 @@ project(
 
 gnome = import('gnome')
 i18n = import('i18n')
-python3 = import('python3')
+python = import('python')
 
 glib = dependency('glib-2.0', version: '>=2.44')
 gio = dependency('gio-2.0', version: '>=2.44')
@@ -27,7 +27,7 @@ conf.set_quoted('GNOMELOCALEDIR', join_paths(get_option('prefix'), get_option('l
 configure_file(output: 'config.h', configuration: conf)
 config_h_dir = include_directories('.')
 
-meson.add_install_script(python3.find_python().path(),
+meson.add_install_script(python.find_installation('python3').path(),
   join_paths(meson.source_root(), 'build-aux', 'post-install.py'))
 
 subdir('data')


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