🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.python
Article #11

Python 3.15 transition - Where we are and what's next

#11
From: Maximiliano Curia
Date: Sat, 10 Oct 2026 09:30
117 lines
6801 bytes
--w365fg8km+TU5CSd
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,

It's been a few weeks since the previous update, so I thought it made
sense to share how the preparation for the transition is going and
highlight what the most important next steps are.

## Status on building packages against 3.15

By now, the 7k+ packages that were included in my selection of affected
packages have gone through at least one attempt to build. For the last
batch of build failures, rather than trying to write patches to all of
them, Marga helped me with filing bugs with links to the logs and the
errors.

With the python3.15 usertag [1] we can see that there are 149 solved
bugs (thanks everybody who helped with that!), 65 patches that still
need to be applied and uploaded, and 87 bugs that need investigating.

## Issues with dh-python

During the rebuilds I found two issues with dh-python that I've sent MRs
for.

The first one is straightforward to fix: it uses glob1 which is
deprecated. The MR [2] is approved and just needs to be merged. This
won't become a problem until Python 3.15 is the default version, but for
testing purposes it would be good to have it fixed now.

The second one is a bit more tricky but also a lot more urgent, as it
needs to happen before 3.15 is marked as supported: When a package ships
metadata for several Python versions and the files are not all
identical, dh-python leaves a partial, invalid dist-info directory under
the version-specific path. This has been happening for a long time, but
with 3.15 it becomes a problem because Python now raises an exception
for those broken directories [3] and any package that attempts to read
such a directory chokes on it and needs to be patched to handle this
situation.

I've been sending patches to different packages that are affected by
this issue, e.g. setuptools [4], but this is a problem that is caused by
dh-python (i.e. it doesn't happen outside of Debian) and so not all
upstreams are eager to accept such a change.

In other words, we should fix dh-python to stop creating broken
directories in this case, and do so before we start building against
3.15. I've sent two alternative MRs for dealing with this. The first one
[5] merges the files, while the second one [6] leaves the metadata
directories as they are, instead of keeping only the files that differ.
Either solution is fine by me, but what we can't do is keep the current
behavior as it's creating invalid metadata directories, and we will
continue to run into bugs that nobody else sees, because we are creating
this invalid situation in the first place.

## Next steps on moving 3.15 to supported version

After a slight delay in the upstream release, Python 3.15 is now out,
and yesterday Stefano uploaded the 3.15.0-1 package to unstable.

3.15 is not yet listed as a supported version in python3-defaults, so
packages are not building against it yet. As mentioned above, ideally
dh-python should be fixed before this step happens, to avoid creating
broken directories that will bite us in the future.

Once that's done, the next step is to add 3.15 to the supported
versions, coordinate with the release team to actually start the
transition [7]. And then all the python3.15 bugs that are marked as
'important' need to be raised to 'serious' (92 bugs currently in this
category).

Happy Hacking,
Maxy

[1]: https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=3Ddebian-python@li=
sts.debian.org&tag=3Dpython3.15
[2]: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/=
91/diffs
[3]: https://docs.python.org/3.15/whatsnew/3.15.html#importlib-metadata
[4]: https://github.com/pypa/setuptools/pull/5332
[5]: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/=
92
[6]: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/=
93
[7]: https://release.debian.org/transitions/html/python3.15-add.html

--=20
"UNIX is basically a simple operating system, but you have to be a genius t=
o=20
understand the simplicity."
-- Dennis Ritchie
Saludos /\/\ /\ >< `/

--w365fg8km+TU5CSd
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmrKBEcACgkQxxl2mbKb
IypSPg/8CDpghrbylyG6IIbMASUJXReBD/YAcnOAUZAHxXQcKe0pHHAsl7tkIuGL
iwRfsDt2PJ8KTx+8m6zj7p4jiy4xpF5hm9oN526xRT+Q5U7JDXbO98h5cFZUv9Eo
CtwsxARS42CWNqAMrK1pzPBEb5zpa/bLN5armgMyr6qIeh2Z2VWV9eGlKXq4huNV
sS0FhjrGyUbTR/0RD1iUNyfFkhdT6Lbd1Ear9s42jG8rOW24m5n/X1rkse5jBosS
V9Hr9HHhJci3C2ustm1RJO6ycPYZh2322WLWoSIe7Anpfq5rQDK4xtKcqMzFrgs9
v3LnrFV6MR6NxaFBSAqlnOXNWJ5QG2mowrH853tU63bj4x3QKHfA180k4HWiZfYb
OhFCxHGvGNCtAfV+yrmnbWYSBSpbaimW3vnW6S86FNR0Lr0f7l+y9bXMHCJy8IqK
ouVi5XrOL3JUy0v6i4iuWs+j3Xeeyl/eOLD6FCCJKLdu33ZgE4U9jxncjO7Uxl2E
teAL9nZv0Wf+0jEt3JQXb/fnUVGs3AZ1AsoPG22vz+BR5TAWWgEm6q7uZHMxLzxC
o1SPCWtnYdstnNCeDFoV+WEJ05/WlyES169Y4cYJ7qStP9DBAHby4Ef8vbOfeZCN
PHTRpeopjir4CuTFIMU9bC/1bzXTg/8tgUAXSd0/93NgYe/kmSc=
=MPWL
-----END PGP SIGNATURE-----

--w365fg8km+TU5CSd--
Technical Details
Message-ID: <NMByV-4FkI-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Maximiliano Curia <maxy@debian.org>
Newsgroups: linux.debian.maint.python
Subject: Python 3.15 transition - Where we are and what's next
Date: Sat, 10 Oct 2026 11:30:01 +0200
Message-ID: <NMByV-4FkI-9@gated-at.bofh.it>
X-Original-To: debian-python@lists.debian.org
X-Mailbox-Line: From debian-python-request@lists.debian.org  Sat Oct 10 09:24:37 2026
Old-Return-Path: <maxy@debian.org>
X-Amavis-Spam-Status: No, score=-4.641 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="w365fg8km+TU5CSd"
Content-Disposition: inline
X-Debian-User: maxy
X-Mailing-List: <debian-python@lists.debian.org> archive/latest/24109
List-ID: <debian-python.lists.debian.org>
List-URL: <https://lists.debian.org/debian-python/>
List-Archive: https://lists.debian.org/msgid-search/asoER6kdxFAJ83N6@hecuba.gnuservers.com.ar
Approved: robomod@news.nic.it
Lines: 117
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 10 Oct 2026 11:24:23 +0200
X-Original-Message-ID: <asoER6kdxFAJ83N6@hecuba.gnuservers.com.ar>