python-utils-r1.eclass: Remove PYTHON_TARGETS="pypy"
authorDavid Seifert <soap@gentoo.org>
Mon, 30 Dec 2019 00:48:32 +0000 (01:48 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 30 Dec 2019 12:58:51 +0000 (13:58 +0100)
* With the EOL of CPython 2, we also want to
  remove support for PyPy (i.e. PyPy for Python 2).
  This change does not affect PyPy3, i.e. Pypy for
  Python 3.

Signed-off-by: David Seifert <soap@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/python-utils-r1.eclass
eclass/tests/python-utils-r1.sh

index 370898bcea00ab49e5bfa714458d78bccde26151..09b501a4ad244c61d5268ad422b8713a100f43bf 100644 (file)
@@ -40,7 +40,7 @@ inherit toolchain-funcs
 # All supported Python implementations, most preferred last.
 _PYTHON_ALL_IMPLS=(
        jython2_7
-       pypy pypy3
+       pypy3
        python2_7
        python3_6 python3_7 python3_8
 )
@@ -78,10 +78,10 @@ _python_impl_supported() {
        # keep in sync with _PYTHON_ALL_IMPLS!
        # (not using that list because inline patterns shall be faster)
        case "${impl}" in
-               python2_7|python3_[678]|jython2_7|pypy|pypy3)
+               python2_7|python3_[678]|jython2_7|pypy3)
                        return 0
                        ;;
-               pypy1_[89]|pypy2_0|python2_[56]|python3_[12345])
+               pypy|pypy1_[89]|pypy2_0|python2_[56]|python3_[12345])
                        return 1
                        ;;
                *)
index df77a3fcf6ec22e66cce2fc451c1a2b48cbf5bf5..f8d4858da7ccab2a8f5c5ed87b60dfe8724e8a43 100755 (executable)
@@ -188,7 +188,7 @@ test_is "_python_impl_supported python3_8" 0
 test_is "_python_impl_supported pypy1_8" 1
 test_is "_python_impl_supported pypy1_9" 1
 test_is "_python_impl_supported pypy2_0" 1
-test_is "_python_impl_supported pypy" 0
+test_is "_python_impl_supported pypy" 1
 test_is "_python_impl_supported pypy3" 0
 test_is "_python_impl_supported jython2_7" 0