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
There are situations in which downstream overlays need to have versions
of python which Gentoo no longer supports in the tree.

Currently, the only way to do this is for the overlay author to fork
python-utils-r1.eclass. This is highly undesirable since it creates a
very significant maintenance burden for the overlay author.

There are a couple of things we can do upstream to make this easier, and
I think we should do one of them.

The simplest way would be to apply the following patch.
In this situation, all the overlay author
would have to do is adjust the PYTHON_COMPAT_ALLOW_EXTRA_IMPLS variable.

The other option would be to move _PYTHON_ALL_IMPLS and  the
implementation of _python_impl_supported to a separate eclass, e.g.
python-impls-r1.eclass. This eclass could be forked freely downstream
without worrying about the other python eclasses.
I will volunteer to do the legwork for this option if we do not like the
first one.

I would advocate the first option however since no one has to fork
anything.

Thoughts?

William

William Hubbs (1):
  python.eclass: add PYTHON_COMPAT_ALLOW_EXTRA_IMPLS

 eclass/python-utils-r1.eclass | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.24.1

Replies