Skip to content

Commit

Permalink
python-utils-r1.eclass: Remove PYTHON_TARGETS="jython2_7"
Browse files Browse the repository at this point in the history
Jython was supported as an experimental implementation but due to
interoperability issues and very slow development, its (re-)deployment
in ebuilds never took off.  Now that Python 2.7 is going away, there's
no point in keeping its future support.

Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 30, 2019
1 parent 8844b4c commit b1b38d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions eclass/python-utils-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ inherit toolchain-funcs
# @DESCRIPTION:
# All supported Python implementations, most preferred last.
_PYTHON_ALL_IMPLS=(
jython2_7
pypy3
python2_7
python3_6 python3_7 python3_8
Expand Down Expand Up @@ -78,10 +77,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|pypy3)
python2_7|python3_[678]|pypy3)
return 0
;;
pypy|pypy1_[89]|pypy2_0|python2_[56]|python3_[12345])
jython2_7|pypy|pypy1_[89]|pypy2_0|python2_[56]|python3_[12345])
return 1
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion eclass/tests/python-utils-r1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ test_is "_python_impl_supported pypy1_9" 1
test_is "_python_impl_supported pypy2_0" 1
test_is "_python_impl_supported pypy" 1
test_is "_python_impl_supported pypy3" 0
test_is "_python_impl_supported jython2_7" 0
test_is "_python_impl_supported jython2_7" 1

# check _python_impl_matches behavior
test_is "_python_impl_matches python2_7 -2" 0
Expand Down

0 comments on commit b1b38d9

Please sign in to comment.