--- a/README.md Tue Apr 09 21:17:43 2024 -0500
+++ b/README.md Tue Apr 09 21:25:58 2024 -0500
@@ -14,18 +14,19 @@
To build, you will need [Meson](https://mesonbuild.com/),
[GLib](https://wiki.gnome.org/Projects/GLib),
-[ncurses](https://www.gnu.org/software/ncurses/ncurses.html),
-[libxml2](http://xmlsoft.org/), and [Python 3](https://www.python.org/). Exact
-versions can be determined from the `meson.build` in the top-level directory.
+[ncurses](https://www.gnu.org/software/ncurses/ncurses.html), and +[libxml2](http://xmlsoft.org/). Exact versions can be determined from the +`meson.build` in the top-level directory. On Debian-based systems, install `meson` `ninja-build` `gobject-introspection`
`libgirepository1.0-dev` `gtk-doc-tools` `libglib2.0-dev` `libxml2-dev`
-`libncurses-dev` `libpython3-dev`.
On Fedora-based systems, install `meson` `ninja-build` `gobject-introspection`
-`gtk-doc` `glib2-devel` `libxml2-devel` `ncurses-devel` `python3-devel`.
+`gtk-doc` `glib2-devel` `libxml2-devel` `ncurses-devel`. -You can then run Meson and Ninja as usual (passing any `-D` options if necessary):
+You can then run Meson and Ninja as usual (passing any `-D` options if --- a/convey.yml Tue Apr 09 21:17:43 2024 -0500
+++ b/convey.yml Tue Apr 09 21:25:58 2024 -0500
@@ -28,7 +28,7 @@
workdir: ${CONVEY_WORKSPACE}
- - meson setup build-docs -Ddoc=true -Dpython2=false
+ - meson setup build-docs -Ddoc=true - ninja -C build-docs libgnt-doc
--- a/gntwm.c Tue Apr 09 21:17:43 2024 -0500
+++ b/gntwm.c Tue Apr 09 21:25:58 2024 -0500
@@ -22,12 +22,6 @@
-/* Python.h may define _GNU_SOURCE and _XOPEN_SOURCE_EXTENDED, so protect
- * these checks with #ifndef/!defined() */
@@ -103,9 +97,6 @@
static gboolean idle_update;
static GList *act = NULL; /* list of WS with unseen activitiy */
static gboolean ignore_keys = FALSE;
-static gboolean started_python = FALSE;
g_list_bring_to_front(GList *list, gpointer data)
@@ -1280,49 +1271,6 @@
-python_script_selected(GntFileSel *fs, const char *path, const char *f, gpointer n)
- char *dir = g_path_get_dirname(path);
- FILE *file = fopen(path, "r");
- PyObject *pp = PySys_GetObject("path");
-#if PY_MAJOR_VERSION >= 3
- PyObject *dirobj = PyUnicode_FromString(dir);
- PyObject *dirobj = PyString_FromString(dir);
- PyList_Insert(pp, 0, dirobj);
- PyRun_SimpleFile(file, path);
- if (PyErr_Occurred()) {
- gnt_widget_destroy(GNT_WIDGET(fs));
-run_python(GntBindable *bindable, GList *n)
- GntWidget *window = gnt_file_sel_new();
- GntFileSel *sel = GNT_FILE_SEL(window);
- g_object_set(G_OBJECT(window), "vertical", TRUE, NULL);
- gnt_box_add_widget(GNT_BOX(window), gnt_label_new("Please select the python script you want to run."));
- gnt_box_set_title(GNT_BOX(window), "Select Python Script...");
- g_signal_connect(G_OBJECT(sel), "file_selected", G_CALLBACK(python_script_selected), NULL);
- g_signal_connect_swapped(G_OBJECT(sel->cancel), "activate", G_CALLBACK(gnt_widget_destroy), sel);
- gnt_widget_show(window);
help_for_bindable(GntWM *wm, GntBindable *bindable)
@@ -1396,12 +1344,6 @@
g_object_unref(wm->workspaces->data);
wm->workspaces = g_list_delete_link(wm->workspaces, wm->workspaces);
- started_python = FALSE;
@@ -1583,25 +1525,6 @@
snprintf(key, sizeof(key), "\033%s", GNT_KEY_BACK_TAB);
gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "window-prev-urgent", window_prev_urgent,
key[1] ? key : NULL, NULL);
- gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "run-python", run_python,
- if (!Py_IsInitialized()) {
-#if PY_MAJOR_VERSION >= 3
- len = mbstowcs(NULL, "gnt", 0);
- name = g_new(wchar_t, len + 1);
- mbstowcs(name, "gnt", len + 1);
- Py_SetProgramName(name);
- Py_SetProgramName("gnt");
gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), GNT_BINDABLE_CLASS(klass));
--- a/meson.build Tue Apr 09 21:17:43 2024 -0500
+++ b/meson.build Tue Apr 09 21:25:58 2024 -0500
@@ -190,20 +190,6 @@
-# Check for Python headers
-if get_option('python2')
- python_dep = dependency('python2', required : false)
- if not python_dep.found()
- python_dep = dependency('python-2.7', required : false)
- if not python_dep.found()
- error('failed to find python')
-gnt_config.set('USE_PYTHON', get_option('python2'))
configure_file(output : 'gntconfig.h',
configuration : gnt_config)
@@ -221,9 +207,6 @@
libgnt_inc = include_directories('.')
libgnt_dependencies= [ncurses, libxml, glib, gobject, gmodule]
-if get_option('python2')
- libgnt_dependencies += python_dep
libgnt_SOURCES + gntmarshal,
--- a/meson_options.txt Tue Apr 09 21:17:43 2024 -0500
+++ b/meson_options.txt Tue Apr 09 21:25:58 2024 -0500
@@ -1,9 +1,3 @@
- type: 'boolean', value: true,
- description: 'Whether or not to include python support.',
type: 'boolean', value: true,