#1146589 s2geometry: FTBFS against python 3.14 and 3.15rc1

#1146589#5
Date:
2026-09-03 15:15:36 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc1
version we found that s2geometry fails to build from source [1]. And it
also fails on Debian buildds, as it fails for 3.14 as well [2].

One of the many errors:

/build/reproducible-path/s2geometry-0.10.0/.pybuild/cpython3_3.14/build/python/CMakeFiles/_pywraps2.dir/s2PYTHON_wrap.cxx:18298:9:
error: ‘SWIG_Python_TypeError’ was not declared in this scope; did you
mean ‘SWIG_Python_TypeQuery’?

As upstream points out in its fix SWIG_Python_TypeError was removed in
SWIG 4.4, so the .i file needs to be updated.

I applied the upstream fix [4] in the sandbox [3] to be able to build the packages
that depend on s2geometry, please consider applying the patch to support
the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4243268/
[2]: https://buildd.debian.org/status/fetch.php?pkg=s2geometry&arch=amd64&ver=0.10.0-6.1%2Bb2&stamp=1711976885&raw=0
[3]: https://debusine.debian.net/debian/r-python-python3.15/
[4]: https://github.com/google/s2geometry/issues/487