🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.python
4 messages
4 total messages Started by Maximiliano Curia Sat, 10 Oct 2026 09:30
Python 3.15 transition - Where we are and what's next
#11
Author: 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--
Re: Python 3.15 transition - Where we are and what's next
#38
Author: Maximiliano Curia
Date: Tue, 20 Oct 2026 18:20
72 lines
4520 bytes
--oFMEsNK6t1jWuxRA
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

=A1Hola debian-python!

El 2026-10-10 a las 11:24 +0200, Maximiliano Curia escribi=F3:

> ## Issues with dh-python
=2E..
> 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.

In the end, Stefano adopted a different strategy, which was implemented
in MRs !97 [1], !98 [2] and !99 [3]. These changes cause dh-python to
throw an error when a package would ship a broken metadata directory.
These changes were included in the latest upload of dh-python
(7.20261019) that was uploaded yesterday. And Santiago Vila has already
started filing some FTBFS bugs for affected packages.

The solution for this is to have more strict rules regarding what gets
installed in the packages and avoid installing spurious directories
(like 'debian' or 'build'), which were causing broken top_level.txt
files.

I'll be working on filing more of these bugs and sending patches for
them. This is just a small heads-up that this is coming.

Happy hacking,
Maxy

[1]: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/=
97
[2]: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/=
98
[3]: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/=
99

--=20
"I decry the current tendency to seek patents on algorithms. There are bett=
er=20
ways to earn a living than to prevent other people from making use of one's=
=20
contributions to computer science."
-- Donald Knuth
Saludos /\/\ /\ >< `/

--oFMEsNK6t1jWuxRA
Content-Type: application/pgp-signature; name=signature.asc

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

iQIzBAABCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmrXsE4ACgkQxxl2mbKb
IyrPww/+OKOIp7ydxRnrCn3MeFxDPjBc79dPDZKadJAfNlWlI+bNS0c6Jav3JZJC
MVBWbTZUjSwqozZRbr7nqWuBMePKM20wrSmJ2a3aXgevYgIHASuiEiWCb4nZs13s
tXiZl0cEeZqoTSlx7GVBdMpEpuasApiNKTgs+tYYPDhKEKK2WzhiXpdy+E4esf7O
LwhmrdeUfL9aVGqemubm8ISfIH+tEmBG6uo1ZvJJ3zFeuZYISD1jqjfDwEGzXgq9
7DuCJJNmRBwpwXqwKPJD4Qz4rDHV1IzDDrLWmRZMF4BQFXp7X5IpGixGY1DEX8bZ
eyB4ReFs/BKfsv9YNF94olFJuYODKkHToG8DqGMfVR+mykIkmVhFDvyI8uVX40VU
ncBRSVCJZvo0TnE9zefmeiYkIvzavNSZB4mkTv9txh7rhnJuYGOvXMNL0Ywa38Cb
G4Hnohe/hqV8IskViut+A4yWoPdNSGSRedZHBvXvxoIx0VM23sPGpAYEIe188llq
9eTJ0MJ8gaDwFddtVH+8Wd5nih8QbEVtPU1xDlsyf/PxFGgf+gySHlXKeOpGjX/V
IjMNmpNrAjXFvq80DRyWLZYyNuniprSNWq5Rk2jIIhxlIx5QamrC2DJMVIWXjBa2
mG9lzzQI2PnL4RH7H4d0jbYFryV7MrGvw0Yxb8L9cjQ7NAwo5dY=
=K/Xs
-----END PGP SIGNATURE-----

--oFMEsNK6t1jWuxRA--
Re: Python 3.15 transition - Where we are and what's next
#40
Author: Thomas Goirand
Date: Wed, 21 Oct 2026 16:50
46 lines
6937 bytes
On 10/20/26 8:17 PM, Maximiliano Curia wrote:
> ¡Hola debian-python!
> 
> El 2026-10-10 a las 11:24 +0200, Maximiliano Curia escribió:
> 
>> ## Issues with dh-python
> ...
>> 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.
> 
> In the end, Stefano adopted a different strategy, which was implemented
> in MRs !97 [1], !98 [2] and !99 [3]. These changes cause dh-python to
> throw an error when a package would ship a broken metadata directory.
> These changes were included in the latest upload of dh-python
> (7.20261019) that was uploaded yesterday. And Santiago Vila has already
> started filing some FTBFS bugs for affected packages.
> 
> The solution for this is to have more strict rules regarding what gets
> installed in the packages and avoid installing spurious directories
> (like 'debian' or 'build'), which were causing broken top_level.txt
> files.
> 
> I'll be working on filing more of these bugs and sending patches for
> them. This is just a small heads-up that this is coming.
> 
> Happy hacking,
> Maxy
> 
> [1]: https://salsa.debian.org/python-team/tools/dh-python/-/ 
> merge_requests/97
> [2]: https://salsa.debian.org/python-team/tools/dh-python/-/ 
> merge_requests/98
> [3]: https://salsa.debian.org/python-team/tools/dh-python/-/ 
> merge_requests/99

One thing which would be nice would be a lintian check for tests 
installed in /usr/lib/python3/dist-packages too.

Cheers,

Thomas Goirand (zigo)
Re: Python 3.15 transition - Where we are and what's next
#44
Author: Maximiliano Curia
Date: Fri, 23 Oct 2026 14:10
45 lines
3837 bytes
--Zj6C47v8J+fv2kt0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

=A1Hola Thomas!

El 2026-10-21 a las 18:42 +0200, Thomas Goirand escribi=F3:
>One thing which would be nice would be a lintian check for tests=20
>installed in /usr/lib/python3/dist-packages too.

It would have been nice to have that before, but right now that error
causes an FTBFS, so adding it to lintian now wouldn't help.

Happy hacking,
--=20
"Haskell is faster than C++, more concise than Perl, more regular than Pyth=
on,=20
more flexible than Ruby, more typeful than C#, more robust than Java, and h=
as=20
absolutely nothing in common with PHP."
-- Audrey Tang
Saludos /\/\ /\ >< `/

--Zj6C47v8J+fv2kt0
Content-Type: application/pgp-signature; name=signature.asc

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

iQIzBAABCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmrbaSEACgkQxxl2mbKb
IyrUFQ/8C8lSsGuRTYPOZtHV0sIpoWZK+8YcWVo9cPNAW5E+Qur1Wu4eqn8lj98U
HanM/Llscbo0d6SQaCwmD+Pdk5b5XaHumlhrzXXkHMs/MOsEC1oJEjSn4Qbb8X9l
q/LhngCpV4GIJzoNYvQuokktNA1XPxhB3U+CTU0lEq98IOaoG+3ox6jcEg+4afKB
dTAu9eg8+fRTu1xpb4cItXbc3xQEyqv/Ig6HcgIgaxrkZZw4sDCRs2IOna4vvXxO
ZP7mnIbt0M5HOKInZcLz2X6yh9Dm8KouikiMUdFZEyOMgP5ncgeLCANOWIf2ZUBl
0R8YeGY5ZVo4puvC4YzsY4kmdQRTPD/QQI/MvHa3M2lsgLBtJ24ACLAG5VfBHace
8QvoxxyDa2sIEE1LqS3i8uZZmp8uQhYI06KcHrhqndZlCWOSs4urdkjaiKA3Zbx7
tjPY4i3W2eq4awioIRE2Cwdld5/Y6ZFvKW45vRcXjgPao+RFzRq2EN/XaSQ2tb7S
YzOWJMheuDx4muW5ks5nJn69InqnC8oy1KtH30k16Prl7s0CH1b9QJpx8BNggTZc
EUIBGvbLHKArk3JJ3JgVTTxwZBiMcbHSqGWrN4pi0W7mYck7lgD4E6WAzv0Lej1s
y+sDE5VZacGt5FenKyRwZGZxK0ERa061sX4ViKEnh2NCra14vpU=
=NY9S
-----END PGP SIGNATURE-----

--Zj6C47v8J+fv2kt0--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads