Description: Fully disable building legacy Python bindings
 We are already disabling it, but it looks like distclean still
 tries to use the Python directory, which then fails.
 Backport the necessary parts of the commit removing the legacy
 bindings to disable this fully.
Author: Michel Lind <michel@michel-slm.name>
Origin: backport, https://github.com/ptesarik/libkdumpfile/commit/40c9ff981f1f3bd968af37a50b50c3478d8267cd
Forwarded: not-needed
Last-Update: 2025-06-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,9 +22,6 @@
 ACLOCAL_AMFLAGS = -I m4
 
 SUBDIRS = include src tests tools examples
-if BUILD_PYTHON_EXT
-SUBDIRS += python
-endif
 
 dist_noinst_DATA = \
 	COPYING.GPLv2 \
--- a/configure.ac
+++ b/configure.ac
@@ -105,9 +105,6 @@ AC_ARG_ENABLE(debug,
 AS_IF([test "x$enable_debug" = xyes],
     [AC_DEFINE(ENABLE_DEBUG, 1, Define to enable extra debugging features)])
 
-dnl check for Python
-kdump_PYTHON([2.7.0])
-
 dnl check whether to build optional tools
 AC_SUBST(KDUMPID_VER_MAJOR, kdumpid_major_version)
 AC_SUBST(KDUMPID_VER_MINOR, kdumpid_minor_version)
@@ -121,7 +118,6 @@ AC_CONFIG_FILES([
 	src/Makefile
 	src/addrxlat/Makefile
 	src/kdumpfile/Makefile
-	python/Makefile
 	tests/Makefile
 	tools/Makefile
 	tools/kdumpid/Makefile
