summaryrefslogtreecommitdiff
blob: 56f9543ba40a16a55a0f3e5a98460c99f2426033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 1853567d79024c6ce960d9dc187cff8aaf9a37ce Mon Sep 17 00:00:00 2001
From: Niels De Graef <nielsdegraef@gmail.com>
Date: Mon, 3 Feb 2020 08:57:52 +0100
Subject: [PATCH] meson: Use python.dependency() correctly

From https://github.com/mesonbuild/meson/issues/6470:

> So, to further clarify, passing an argument to
> py_installation.dependency() should be an error, since this method
> will only ever return a python dependency (for embedding python
> itself, etc.) and not dbusmock or anything else.

Fixxes https://gitlab.gnome.org/GNOME/folks/issues/119
---
 meson.build | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meson.build b/meson.build
index d5115e28..f3644457 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project('folks', [ 'vala', 'c' ],
   version: '0.13.2',
   license: 'LGPL2.1+',
-  meson_version: '>= 0.49',
+  meson_version: '>= 0.51',
 )
 
 gnome = import('gnome')
@@ -132,8 +132,11 @@ if bluez_backend_enabled
   libebook_dep = dependency('libebook-1.2', version: '>=' + min_eds_version)
   # Needed for the BlueZ tests
   pymod = import('python')
-  py_installation = pymod.find_installation('python3')
-  python_dbusmock = py_installation.dependency('dbusmock')
+  py_installation = pymod.find_installation('python3',
+    modules: [
+      'dbusmock',
+    ],
+  )
 endif
 
 if import_tool_enabled
-- 
2.20.1