Gentoo Archives: gentoo-dev

From: Patrick McLean <chutzpah@g.o>
To: Matt Turner <mattst88@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] Split python implementations definition to separate eclass
Date: Fri, 27 Mar 2020 22:11:23
Message-Id: 20200327151116.4cb6f292@moya.linuxfreak.ca
In Reply to: Re: [gentoo-dev] [PATCH] Split python implementations definition to separate eclass by Matt Turner
1 On Fri, 27 Mar 2020 14:48:53 -0700
2 Matt Turner <mattst88@g.o> wrote:
3
4 > On Thu, Mar 26, 2020 at 2:03 PM Patrick McLean <chutzpah@g.o> wrote:
5 > >
6 > > This patch splits the definition of _PYTHON_ALL_IMPLS and
7 > > _python_impl_supported to a separate eclass, this allows overlays
8 > > to easily support a different set of python implementations than
9 > > ::gentoo without having to fork the entire suite of eclasses.
10 >
11 > (I think the issue is that you have some packages that still need
12 > Python 3.4. Correct me if I'm wrong)
13 >
14 > How many packages do you need to work with Python 3.4? Presumably just
15 > a couple and then a pile of dependencies in ::gentoo?
16 >
17
18 For our particular purpose, it's more complicated than that. We do not
19 expect or want ::gentoo to try support Python 3.4 in any way. We have an
20 overlay that is shared on a lot of machines, some of those machines are
21 older than others. As such we still have ebuilds that only support
22 python3_4 that still exist in the overlay. We would like it if the
23 existence of these packages in the overlay, do not cause metadata
24 generation or dependency calculation to explode on the more up-to-date
25 machines.
26
27 We do not need Python 3.4 packages to be installable on the newer
28 machines, we just need them not to explode.
29
30 I am trying to come up with a solution that *any* overlay can use, I
31 am happy to do work towards that end. Basically, it would be very
32 nice if there was a minimal eclass that handles all the python
33 version compatibility. Almost everything in the eclasses does not care
34 about versions.
35
36 This is not meant to be something just for our usage, we want this to
37 be usable for *any* overlay, and are more than happy to make things as
38 generic as possible. If some overlay wants to support Python 3.10 alpha,
39 resurrect jython support, or add Ironpython support, without forking
40 all the eclasses, I would like to think that could be doable as well.

Replies