Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: Enable hardlinking of identical pyc files for py3.9+
Date: Wed, 23 Jun 2021 10:30:01
Message-Id: 1da665fe575f0b3f86e2b6ad58acf9f140e6f8a3.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: Enable hardlinking of identical pyc files for py3.9+ by Mart Raudsepp
1 On Wed, 2021-06-23 at 13:19 +0300, Mart Raudsepp wrote:
2 > Ühel kenal päeval, K, 23.06.2021 kell 11:56, kirjutas Michał Górny:
3 > > > -                       python*|pypy3)
4 > > > +                       python3.[5678]|pypy3)
5 > >
6 > > We don't really support < 3.8 anymore but I can update that while
7 > > merging, I guess.
8 >
9 > Yeah, this is originating from the previous block having python3.[34],
10 > so the changeset is making sure the 3.9 and 3.10 cases end up using the
11 > added path, not about 3.5/3.6, for which the code path is kept the same
12 > with this.
13 >
14 > I don't foresee myself working on making distutils cases work with this
15 > anytime soon. Maybe we should file a bug on that. It's a bit surprising
16 > this wasn't done there too upstream, I guess those who made this change
17 > only cared about it for python itself and they are running compileall
18 > manually over all the caches.
19 >
20
21 The problem roughly is that distutils is unmaintained for years,
22 and upstream plans to remove it entirely in Python 3.12. If anyone's
23 going to work on patches, setuptools is probably where it would need
24 to land. But right now it's all a huge mess.
25
26 --
27 Best regards,
28 Michał Górny