[yelp-tools/wip/jtojnar/mesonpy] build: Use Meson's python module for finding lxml




commit 9ee03ec23b0a924c44817998ef64a18246c3e5a9
Author: Jan Tojnar <jtojnar gmail com>
Date:   Wed Apr 7 16:14:33 2021 +0200

    build: Use Meson's python module for finding lxml

 meson.build | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index b155d31d..db0a170f 100644
--- a/meson.build
+++ b/meson.build
@@ -1,15 +1,13 @@
 project('yelp-tools',
   version: '40.0',
   license: 'GPL-2.0-or-later',
-  meson_version: '>= 0.50.0',
+  meson_version: '>= 0.51.0',
 )
 
 gnome = import('gnome')
 
 python = import('python')
-pyinst = python.find_installation('python3', required: true)
-lxml = run_command('python3', '-c', 'import lxml')
-assert(lxml.returncode() == 0, 'Python module `lxml` required')
+pyinst = python.find_installation('python3', required: true, modules: ['lxml'])
 
 package_name = meson.project_name()
 


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