[gnome-code-assistance] Check for pygobject runtime, not devel



commit f3f6b190405e61782914617f1a8e6fb8a0f2da81
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Tue Nov 12 12:21:17 2013 +0100

    Check for pygobject runtime, not devel

 configure.ac |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 08b546a..cf9f57c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,9 +71,14 @@ if test "x$python_found" != "xno"; then
 fi
 
 if test "x$python_found" != "xno"; then
-       PKG_CHECK_EXISTS([pygobject-3.0],
-                        [],
-                        [python_found=no])
+       AC_MSG_CHECKING([python gobject])
+       $PYTHON -c 'import gi; gi.check_version("3.8")' 2>/dev/null
+       if test $? -ne 0 ; then
+               AC_MSG_RESULT([no (require at least 3.8)])
+               python_found=no
+       else
+               AC_MSG_RESULT([yes])
+       fi
 fi
 
 AM_CONDITIONAL(PYTHON_ENABLE, test "x$PYTHON" != "x")


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