[planner: 2/32] python: Drop gtk2-based legacy python plugin and bindings




commit d03fcfc8cf9f6edb12ad8c31e99610c2405ab504
Author: Mart Raudsepp <leio gentoo org>
Date:   Sun May 30 11:48:04 2021 +0300

    python: Drop gtk2-based legacy python plugin and bindings
    
    The python plugin will not work with gtk3, as it's based on pygtk2 and
    not ready for a modern introspection-based binding world. Examples also
    suggest a UI integration via GtkUIManager, which is being moved away
    from.
    
    Delete the plugin and legacy bindings completely for the time being.
    Eventually a python plugin support could be restored on top of
    introspection, after libplanner itself has been modernized.

 meson.build                   |   14 -
 meson_options.txt             |    4 -
 po/POTFILES.in                |    1 -
 python/meson.build            |   31 -
 python/planner-arg-types.defs |    4 -
 python/planner-arg-types.py   |    4 -
 python/planner-types.defs     |  228 -------
 python/planner.defs           | 1423 -----------------------------------------
 python/planner.override       |  789 -----------------------
 python/plannermodule.c        |   32 -
 python/plannerui-types.defs   |   17 -
 python/plannerui.defs         |  120 ----
 python/plannerui.override     |   25 -
 python/planneruimodule.c      |   30 -
 python/python-demo.py         |   42 --
 python/test.py                |   23 -
 src/meson.build               |   10 -
 src/planner-python-plugin.c   |  192 ------
 18 files changed, 2989 deletions(-)
---
diff --git a/meson.build b/meson.build
index 03fcd1d8..b8eb2025 100644
--- a/meson.build
+++ b/meson.build
@@ -18,11 +18,9 @@ planner_sysconfdir = get_option('sysconfdir')
 po_dir = meson.source_root() / 'po'
 
 cc = meson.get_compiler('c')
-pygobject_codegen = find_program('pygobject-codegen-2.0', required: get_option('python'))
 
 i18n = import('i18n')
 gnome = import('gnome')
-pymod = import('python')
 
 conf_data = configuration_data()
 conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
@@ -57,14 +55,6 @@ exslt_dep = dependency('libexslt')
 m_dep = cc.find_library('m', required: false)
 
 gda_dep = dependency('libgda-5.0', version: '>= 1.0', required: get_option('database-gda'))
-pygobject_dep = dependency('pygobject-2.0', required: get_option('python'))
-pygtk_dep = dependency('pygtk-2.0', version: '>= 2.6.0', required: get_option('python'))
-if pygtk_dep.found()
-  pygtk_defsdir = pygtk_dep.get_pkgconfig_variable('defsdir')
-endif
-python = pymod.find_installation('python2', required: get_option('python'))
-python_dep = python.dependency()
-
 libeds_dep = dependency('libebook-1.2', version: eds_req, required: get_option('eds'))
 
 libplanner_deps = [glib_dep, gmodule_dep, gobject_dep, libxml_dep, m_dep]
@@ -85,9 +75,6 @@ subdir('data')
 subdir('src')
 subdir('examples')
 subdir('tests')
-if python_dep.found() and pygobject_codegen.found()
-  subdir('python')
-endif
 subdir('docs')
 
 meson.add_install_script('meson_post_install.sh')
@@ -101,7 +88,6 @@ status = [
 status += [
   'Planner prefix               : @0@'.format(planner_prefix),
   'Build API docs               : @0@'.format(get_option('gtk_doc')),
-  'Python                       : @0@'.format(python_dep.found() and pygobject_codegen.found()),
   'Simple priority scheduling   : @0@'.format(get_option('simple-priority-scheduling')),
   'Database/GDA support         : @0@'.format(gda_dep.found()),
   'Evolution Data Server import : @0@'.format(libeds_dep.found()),
diff --git a/meson_options.txt b/meson_options.txt
index 5df49a46..f54f0df8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,10 +7,6 @@ option('eds',
   value: 'disabled',
   description: 'build evolution-data-server plugin -- currently broken, do not enable unless working on it'
 )
-option('python',
-  type: 'feature',
-  value: 'auto',
-)
 option('examples',
   type: 'boolean',
   value: false,
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0270cf08..3a044523 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -84,7 +84,6 @@ src/planner-print-dialog.c
 src/planner-print-job.c
 src/planner-project-properties.c
 src/planner-property-dialog.c
-src/planner-python-plugin.c
 src/planner-relation-arrow.c
 src/planner-resource-cmd.c
 src/planner-resource-dialog.c
diff --git a/src/meson.build b/src/meson.build
index 6132c7c9..772a3195 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -104,16 +104,6 @@ if gda_dep.found()
   )
 endif
 
-if pygtk_dep.found() and python_dep.found()
-  libpython_plugin_srcs = [ 'planner-python-plugin.c' ]
-  libpython_plugin_module = shared_module('python-plugin', [libpython_plugin_srcs],
-    dependencies: [planner_deps, pygtk_dep, python_dep],
-    include_directories: [toplevel_inc],
-    install: true,
-    install_dir: planner_plugindir,
-  )
-endif
-
 if libeds_dep.found()
   libeds_plugin_srcs = [ 'planner-eds-plugin.c' ] + eds_plugin_resources
   libeds_plugin_module = shared_module('eds-plugin', [libeds_plugin_srcs],


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