Package: src:numcodecs
Version: 0.17.0+ds-1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that numcodecs fails to build from source [1].

The error is:
env 
PYTHONPATH=/build/reproducible-path/numcodecs-0.17.0+ds/.pybuild/cpython3_3.15_numcodecs/build
 
/build/reproducible-path/numcodecs-0.17.0+ds/.pybuild/cpython3_3.14_numcodecs/build
 \
    http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
python3 -m sphinx -N -E -T -b html . 
/build/reproducible-path/numcodecs-0.17.0+ds/.pybuild/docs/html/
env: 
‘/build/reproducible-path/numcodecs-0.17.0+ds/.pybuild/cpython3_3.14_numcodecs/build’:
 Permission denied

The solution is to fix the pythonpath variable when generating docs, add
-i python3 to the pybuild invocation.

I've applied the fix in the sandbox [2] to verify that it builds
successfully, please consider applying the patch to support the upcoming
3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4784352/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
From 345268baa90c7b43dff803afad68e5ec9abd6310 Mon Sep 17 00:00:00 2001
From: Maximiliano Curia <[email protected]>
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

Reply via email to