commit: 6cbb421176a66579552a24a722a5b68230c92ec3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 2 18:36:42 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 8 12:29:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cbb4211
python-utils-r1.eclass: Simplify _python_impl_matches
Remove special case for '3.10' in _python_impl_matches -- it was only
necessary because we needed to handle 'pypy3' target specially,
and that is no longer the case. Technically, the code checks for
'pypy3_10' but that's not a problem, since there is no such a thing.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/python-utils-r1.eclass | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index ef05a58e1b13..3a4a3f19a1be 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -230,9 +230,7 @@ _python_impl_matches() {
fi
return 0
;;
- 3.10)
- ;;
- 3.8|3.9|3.1[1-3])
+ 3.[89]|3.1[0-3])
[[ ${impl%t} == python${pattern/./_} || ${impl}
== pypy${pattern/./_} ]] &&
return 0
;;