From 345268baa90c7b43dff803afad68e5ec9abd6310 Mon Sep 17 00:00:00 2001
From: Maximiliano Curia <maxy@debian.org>
Date: Sun, 20 Sep 2026 14:15:05 +0200
Subject: [PATCH] Deal with multiple python supported versions

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index d98c74d..dab08e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ override_dh_auto_build:
 	dh_auto_build
 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	cd docs && \
-	env PYTHONPATH=$(shell pybuild --print {build_dir}) \
+	env PYTHONPATH=$(shell pybuild --print {build_dir} -i python3) \
 	    http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
 	python3 -m sphinx -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
 endif
-- 
2.53.0

