python-utils-r1.eclass: Restore old CPython version reqs
authorMichał Górny <mgorny@gentoo.org>
Thu, 30 Apr 2020 05:54:14 +0000 (07:54 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 30 Apr 2020 05:55:43 +0000 (07:55 +0200)
Closes: https://bugs.gentoo.org/720048
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/python-utils-r1.eclass

index e85aefda792a3027bdfc43fb27bf5bf1ce35e92b..4af710da363b2ecd191fdc858ee703f390d82499 100644 (file)
@@ -378,13 +378,11 @@ _python_export() {
                                local d
                                case ${impl} in
                                        python2.7)
-                                               PYTHON_PKG_DEP='>=dev-lang/python-2.7.17-r1:2.7';;
-                                       python3.6)
-                                               PYTHON_PKG_DEP=">=dev-lang/python-3.6.10:3.6";;
-                                       python3.7)
-                                               PYTHON_PKG_DEP=">=dev-lang/python-3.7.7-r1:3.7";;
-                                       python3.8)
-                                               PYTHON_PKG_DEP=">=dev-lang/python-3.8.2:3.8";;
+                                               PYTHON_PKG_DEP='>=dev-lang/python-2.7.5-r2:2.7';;
+                                       python*)
+                                               PYTHON_PKG_DEP="dev-lang/python:${impl#python}";;
+                                       pypy)
+                                               PYTHON_PKG_DEP='>=dev-python/pypy-7.3.0:0=';;
                                        pypy3)
                                                PYTHON_PKG_DEP='>=dev-python/pypy3-7.3.0:0=';;
                                        *)