Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Cc: William Hubbs <williamh@g.o>
Subject: [gentoo-dev] [PATCH 0/1] allow extra implementations of python
Date: Thu, 26 Mar 2020 19:14:19
Message-Id: 20200326191358.23133-1-williamh@gentoo.org
1 There are situations in which downstream overlays need to have versions
2 of python which Gentoo no longer supports in the tree.
3
4 Currently, the only way to do this is for the overlay author to fork
5 python-utils-r1.eclass. This is highly undesirable since it creates a
6 very significant maintenance burden for the overlay author.
7
8 There are a couple of things we can do upstream to make this easier, and
9 I think we should do one of them.
10
11 The simplest way would be to apply the following patch.
12 In this situation, all the overlay author
13 would have to do is adjust the PYTHON_COMPAT_ALLOW_EXTRA_IMPLS variable.
14
15 The other option would be to move _PYTHON_ALL_IMPLS and the
16 implementation of _python_impl_supported to a separate eclass, e.g.
17 python-impls-r1.eclass. This eclass could be forked freely downstream
18 without worrying about the other python eclasses.
19 I will volunteer to do the legwork for this option if we do not like the
20 first one.
21
22 I would advocate the first option however since no one has to fork
23 anything.
24
25 Thoughts?
26
27 William
28
29 William Hubbs (1):
30 python.eclass: add PYTHON_COMPAT_ALLOW_EXTRA_IMPLS
31
32 eclass/python-utils-r1.eclass | 2 ++
33 1 file changed, 2 insertions(+)
34
35 --
36 2.24.1

Replies