[libchamplain] Remove python bindings



commit f3c21121800e26fcb6acbd25fa1299e49732b1c8
Author: William Jon McCann <jmccann redhat com>
Date:   Tue Oct 12 01:32:37 2010 -0400

    Remove python bindings
    
    For GNOME 3 bindings should be generated using introspection
    
    https://bugzilla.gnome.org/show_bug.cgi?id=631009

 Makefile.am                                        |    2 +-
 bindings/Makefile.am                               |    8 +-
 bindings/python/Makefile.am                        |    6 -
 bindings/python/champlain-gtk/Makefile.am          |   58 -
 .../python/champlain-gtk/pychamplaingtk-base.defs  |   43 -
 bindings/python/champlain-gtk/pychamplaingtk.defs  |    3 -
 .../python/champlain-gtk/pychamplaingtk.override   |   20 -
 .../python/champlain-gtk/pychamplaingtkmodule.c    |   26 -
 bindings/python/champlain/Makefile.am              |   89 -
 bindings/python/champlain/pychamplain-base.defs    | 2032 --------------------
 .../python/champlain/pychamplain-boxed-types.defs  |   28 -
 .../python/champlain/pychamplain-constructors.defs |   14 -
 bindings/python/champlain/pychamplain.defs         |    5 -
 bindings/python/champlain/pychamplain.h            |    7 -
 bindings/python/champlain/pychamplain.override     |  738 -------
 .../python/champlain/pychamplainmemphis-base.defs  |  258 ---
 .../champlain/pychamplainmemphis-boxed-types.defs  |   14 -
 .../champlain/pychamplainmemphis-constructors.defs |   14 -
 bindings/python/champlain/pychamplainmemphis.defs  |    5 -
 bindings/python/champlain/pychamplainmemphis.h     |    7 -
 .../python/champlain/pychamplainmemphis.override   |  244 ---
 .../python/champlain/pychamplainmemphismodule.c    |   37 -
 bindings/python/champlain/pychamplainmodule.c      |   51 -
 bindings/python/demos/Makefile.am                  |    1 -
 bindings/python/demos/animated-marker.py           |  128 --
 bindings/python/demos/capitals.py                  |  125 --
 bindings/python/demos/launcher-gtk.py              |  140 --
 bindings/python/demos/launcher.py                  |   90 -
 bindings/python/demos/markers.py                   |   50 -
 bindings/python/demos/minimal-gtk.py               |   39 -
 bindings/python/demos/minimal.py                   |   26 -
 bindings/python/demos/polygons.py                  |  110 --
 bindings/python/demos/url-marker.py                |  102 -
 bindings/python/update-binding.sh.in               |   53 -
 configure.ac                                       |   46 +-
 m4/python.m4                                       |   66 -
 36 files changed, 3 insertions(+), 4682 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 073d64e..6b9c72f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ endif
 pkgconfig_DATA = $(pcfiles)
 pkgconfigdir = $(libdir)/pkgconfig
 
-DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-gtk --enable-vala-demos --enable-introspection --disable-python
+DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-gtk --enable-vala-demos --enable-introspection
 
 EXTRA_DIST = \
 	champlain-gtk.pc.in \
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
index e244b2e..4159bcc 100644
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
@@ -1,7 +1 @@
-SUBDIRS=
-
-#if ENABLE_PYTHON
-#  SUBDIRS+=python
-#endif
-
-SUBDIRS+=vala
+SUBDIRS=vala
diff --git a/configure.ac b/configure.ac
index d7e1def..d6a5fcf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,43 +162,6 @@ AC_SUBST(MEMPHIS_LIBS)
 AM_CONDITIONAL(ENABLE_MEMPHIS, test "x$enable_memphis" = "xyes")
 
 # -----------------------------------------------------------
-# Enable Python bindings
-# -----------------------------------------------------------
-
-AC_ARG_ENABLE(python,
-  AS_HELP_STRING([--enable-python],[Build python bindings]),
-    enable_python=$enableval, enable_python=no )
-
-if test x$enable_python = xyes; then
-  PKG_CHECK_MODULES(PYTHON_BINDING,
-   [
-      pygtk-2.0 >= 2.12
-      pygobject-2.0 >= 2.10
-      pyclutter-1.0 >= 1.0
-   ]
-  )
-
-  if test "x$enable_memphis" = "xyes"; then
-    PKG_CHECK_MODULES(PYTHON_BINDING_MEMPHIS, [pymemphis-0.2 >= 0.2.1])
-  fi
-
-  if test "x$enable_gtk" = "xyes"; then
-    PKG_CHECK_MODULES(PYTHON_BINDING_GTK, [pyclutter-gtk-0.10 >= 0.10])
-  fi
-
-  AC_CHECK_PROGS([PYGOBJECTCODEGEN], [pygobject-codegen-2.0 pygtk-codegen-2.0], [no])
-
-  if test "PYGOBJECTCODEGEN" = "xno"; then
-     AC_MSG_ERROR([Could not find pygobject-codegen-2.0 or pygtk-codegen-2.0])
-  fi
-
-  AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(Could not find python headers)])
-fi
-
-AM_CONDITIONAL(ENABLE_PYTHON, test "x$enable_python" = "xyes")
-GOBJECT_INTROSPECTION_CHECK([0.6.3])
-
-# -----------------------------------------------------------
 # Enable vala demos (default to "no")
 # -----------------------------------------------------------
 
@@ -272,18 +235,12 @@ AC_CONFIG_FILES([Makefile
                  bindings/vala/demos/Makefile
                  champlain-memphis.pc
                  champlain-memphis-uninstalled.pc])
-AC_CONFIG_FILES([bindings/python/update-binding.sh],
-                [
-                 chmod +x bindings/python/update-binding.sh
+AC_CONFIG_FILES([
                  chmod +x bindings/vala/champlain/create.sh
                  chmod +x bindings/vala/champlain-gtk/create.sh
                  chmod +x bindings/vala/champlain-memphis/create.sh
                 ])
 AC_OUTPUT
-#                 bindings/python/Makefile
-#                 bindings/python/champlain/Makefile
-#                 bindings/python/champlain-gtk/Makefile
-#                 bindings/python/demos/Makefile
 
 echo ""
 echo " libchamplain $VERSION"
@@ -299,7 +256,6 @@ echo "Extra tile sources:"
 echo "  Memphis source: ${enable_memphis}"
 echo ""
 echo "Bindings:"
-echo "       Python bindings: ${enable_python}"
 echo "         Vala bindings: yes"
 echo "            Vala demos: ${enable_vala_demos}"
 echo " gobject-introspection: ${enable_introspection}"



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