From 1b3851397612ef92b1b12677ce1e33fa70c4bbdb Mon Sep 17 00:00:00 2001 From: elextr Date: Mon, 7 Feb 2022 07:05:47 +1000 Subject: [PATCH] Switch to Python 3 for GTK doc header generation (#2903) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use python3 whenever possible. Python 2 is EOL and the python binary might not be installed. This obsoletes a Debian patch applied to their package. Co-authored-by: Enrico Tröger --- m4/geany-gtkdoc-header.m4 | 2 +- scripts/gen-api-gtkdoc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/geany-gtkdoc-header.m4 b/m4/geany-gtkdoc-header.m4 index 2b6d87f50..b8828f170 100644 --- a/m4/geany-gtkdoc-header.m4 +++ b/m4/geany-gtkdoc-header.m4 @@ -21,7 +21,7 @@ AC_DEFUN([GEANY_CHECK_GTKDOC_HEADER], [test "x$geany_enable_gtkdoc_header" != "xno"], [ dnl python - AM_PATH_PYTHON([2.7], [have_python=yes], [have_python=no]) + AM_PATH_PYTHON([3], [have_python=yes], [have_python=no]) dnl lxml module AS_IF([test "x$have_python" = xyes], [have_python_and_lxml=yes diff --git a/scripts/gen-api-gtkdoc.py b/scripts/gen-api-gtkdoc.py index 75beb86cf..7423257c9 100755 --- a/scripts/gen-api-gtkdoc.py +++ b/scripts/gen-api-gtkdoc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2015 The Geany contributors # -- 2.11.4.GIT