Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 10/28] python-any-r1.eclass: Remove obsolete eselect-python use
Date: Sun, 20 Jun 2021 09:59:32
Message-Id: 20210620095552.625633-11-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/28] python-r1 suite EAPI 8 support/cleanup by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/python-any-r1.eclass | 16 ----------------
4 1 file changed, 16 deletions(-)
5
6 diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
7 index 49f639d5fac6..cb343b320f0c 100644
8 --- a/eclass/python-any-r1.eclass
9 +++ b/eclass/python-any-r1.eclass
10 @@ -345,22 +345,6 @@ python_setup() {
11 fi
12 fi
13
14 - # then, try eselect-python
15 - local variant i
16 - for variant in '' '--python2' '--python3'; do
17 - i=$(eselect python --show ${variant} 2>/dev/null)
18 -
19 - if [[ ! ${i} ]]; then
20 - # no eselect-python?
21 - break
22 - elif _python_EPYTHON_supported "${i}"; then
23 - _python_export "${i}" EPYTHON PYTHON
24 - _python_wrapper_setup
25 - einfo "Using ${EPYTHON} to build"
26 - return
27 - fi
28 - done
29 -
30 # fallback to best installed impl.
31 # (reverse iteration over _PYTHON_SUPPORTED_IMPLS)
32 for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do
33 --
34 2.32.0