From 9ee03ec23b0a924c44817998ef64a18246c3e5a9 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 7 Apr 2021 16:14:33 +0200 Subject: 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 b155d31..db0a170 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() -- cgit v1.2.1