From 3ff07d859a62e20a0fbbb4b8972bdffec09b7850 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Tue, 8 Feb 2022 15:32:17 +0800 Subject: [PATCH] fix finding pyparsing --- subprojects/spice-common/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/spice-common/meson.build b/subprojects/spice-common/meson.build index 3123fb1..c8b40dd 100644 --- a/subprojects/spice-common/meson.build +++ b/subprojects/spice-common/meson.build @@ -126,7 +126,7 @@ python = py_module.find_installation() if get_option('python-checks') foreach module : ['six', 'pyparsing'] message('Checking for python module @0@'.format(module)) - cmd = run_command(python, '-m', module) + cmd = run_command(python, '-c', 'import @0@'.format(module)) if cmd.returncode() != 0 error('Python module @0@ not found'.format(module)) endif -- 2.27.0