[buoh] build: Do not use deprecated python3 Meson module



commit 7f513c46e6cc60dc62409f8398ae0d67018397cc
Author: Jan Tojnar <jtojnar gmail com>
Date:   Mon Feb 21 16:03:14 2022 +0100

    build: Do not use deprecated python3 Meson module
    
    find_program is the correct function.

 meson.build | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 17440f0..30973ea 100644
--- a/meson.build
+++ b/meson.build
@@ -10,7 +10,6 @@ project(
 
 gnome = import('gnome')
 i18n = import('i18n')
-python3 = import('python3')
 data_dir = join_paths(meson.source_root(), 'data')
 po_dir = join_paths(meson.source_root(), 'po')
 
@@ -29,6 +28,7 @@ glib = dependency('glib-2.0', version: '>= 2.70.0')
 libsoup = dependency('libsoup-2.4', version: '>= 2.4.0')
 libxml2 = dependency('libxml-2.0', version: '>= 2.4.0')
 
+python3 = find_program('python3')
 appstream_util = find_program('appstream-util', required: false)
 desktop_file_validate = find_program('desktop-file-validate', required: false)
 gtk_builder_tool = find_program('gtk-builder-tool', required: false)
@@ -44,7 +44,7 @@ buoh_deps = [
 
 if appstream_util.found()
   meson.add_dist_script(
-    python3.find_python().path(),
+    python3,
     join_paths(meson.source_root(), 'build-aux', 'dist-news.py'),
     appstream_util.path(),
   )
@@ -52,7 +52,7 @@ endif
 
 # Post-install scripts
 meson.add_install_script(
-  python3.find_python().path(),
+  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]