commit:     e2a1d2019d095bd4a636bb06812725329a8619d0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 20 07:27:55 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 23 21:44:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2a1d201

python-any-r1.eclass: Remove obsolete eselect-python use

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/python-any-r1.eclass | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index 49f639d5fac..cb343b320f0 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -345,22 +345,6 @@ python_setup() {
                fi
        fi
 
-       # then, try eselect-python
-       local variant i
-       for variant in '' '--python2' '--python3'; do
-               i=$(eselect python --show ${variant} 2>/dev/null)
-
-               if [[ ! ${i} ]]; then
-                       # no eselect-python?
-                       break
-               elif _python_EPYTHON_supported "${i}"; then
-                       _python_export "${i}" EPYTHON PYTHON
-                       _python_wrapper_setup
-                       einfo "Using ${EPYTHON} to build"
-                       return
-               fi
-       done
-
        # fallback to best installed impl.
        # (reverse iteration over _PYTHON_SUPPORTED_IMPLS)
        for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do

Reply via email to