1 |
commit: e2a1d2019d095bd4a636bb06812725329a8619d0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 07:27:55 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 23 21:44:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2a1d201 |
7 |
|
8 |
python-any-r1.eclass: Remove obsolete eselect-python use |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/python-any-r1.eclass | 16 ---------------- |
13 |
1 file changed, 16 deletions(-) |
14 |
|
15 |
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass |
16 |
index 49f639d5fac..cb343b320f0 100644 |
17 |
--- a/eclass/python-any-r1.eclass |
18 |
+++ b/eclass/python-any-r1.eclass |
19 |
@@ -345,22 +345,6 @@ python_setup() { |
20 |
fi |
21 |
fi |
22 |
|
23 |
- # then, try eselect-python |
24 |
- local variant i |
25 |
- for variant in '' '--python2' '--python3'; do |
26 |
- i=$(eselect python --show ${variant} 2>/dev/null) |
27 |
- |
28 |
- if [[ ! ${i} ]]; then |
29 |
- # no eselect-python? |
30 |
- break |
31 |
- elif _python_EPYTHON_supported "${i}"; then |
32 |
- _python_export "${i}" EPYTHON PYTHON |
33 |
- _python_wrapper_setup |
34 |
- einfo "Using ${EPYTHON} to build" |
35 |
- return |
36 |
- fi |
37 |
- done |
38 |
- |
39 |
# fallback to best installed impl. |
40 |
# (reverse iteration over _PYTHON_SUPPORTED_IMPLS) |
41 |
for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do |