From: Vladimír Čunát Date: Wed, 14 Jan 2026 19:25:38 +0000 (+0100) Subject: doc/meson: drop python2 support X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2d5a7cd6dabc2b6505ca4df798e816ae82fd6e2;p=thirdparty%2Fknot-resolver.git doc/meson: drop python2 support When we run into trouble, it produces confusing errors: https://gitlab.nic.cz/knot/knot-resolver/-/jobs/1627828 and I really hope that python2 won't be useful here anymore. --- diff --git a/doc/meson.build b/doc/meson.build index 0ac8f8a10..7a36787e2 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -35,15 +35,10 @@ if get_option('doc') == 'enabled' endif # python dependencies: breathe, sphinx_rtd_theme - python_breathe = run_command('python3', '-c', 'import breathe', check: false) + python = find_program('python3') + python_breathe = run_command(python, '-c', 'import breathe', check: false) if python_breathe.returncode() != 0 - python_breathe = run_command('python2', '-c', 'import breathe', check: false) - if python_breathe.returncode() != 0 - error('missing doc dependency: python breathe') - endif - python = 'python2' - else - python = 'python3' + error('missing doc dependency: python breathe') endif python_sphinx_rtd_theme = run_command(python, '-c', 'import sphinx_rtd_theme', check: false)