summaryrefslogtreecommitdiff
path: root/net-misc/spice-gtk/files/spice-gtk-0.39-fix-finding-pyparsing.patch
blob: 9a3cdd09006301dea67ea014d70e95218081226c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
https://gitlab.freedesktop.org/spice/spice-common/-/issues/5
https://bugs.gentoo.org/820074
--- a/subprojects/spice-common/meson.build
+++ b/subprojects/spice-common/meson.build
@@ -132,7 +132,7 @@ if spice_common_generate_client_code or spice_common_generate_server_code
   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