[dia: 97/105] #19: Use python module in plug-ins/python.



commit c9894536207a451f59b25dfb8a75237c5f5c3f6c
Author: Eduard Nicodei <eddnicodei gmail com>
Date:   Sat Jan 26 16:59:27 2019 +0000

    #19: Use python module in plug-ins/python.

 plug-ins/python/meson.build | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/python/meson.build b/plug-ins/python/meson.build
index 52418d86..f08bdfcf 100644
--- a/plug-ins/python/meson.build
+++ b/plug-ins/python/meson.build
@@ -1,6 +1,7 @@
-# TODO: should we use pymod even though it requires more recent
-#       version of meson?
-py_dep = dependency('python2', version: '>= 2.3', required: false)
+pymod = import('python')
+
+py_inst = pymod.find_installation('python2', required: false)
+py_dep = py_inst.dependency(version: '>= 2.3')
 
 sources = files(
     'pydia-color.c',


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