commit:     496ddfcc047cdad17456532b3045dfd4c1e829b7
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  9 17:41:29 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Jan 10 17:34:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496ddfcc

python-utils-r1.eclass: restore support for jython2_7 in python_optimize

The eclass was modified to drop support for Python 2.7, however as
unintended side effect, support for Jython 2.7 was also removed in
python_optimize().

Fixes: 3b11f851df5e ("python-utils-r1.eclass: Clean up post disabling python2_7 
compat")
Closes: https://bugs.gentoo.org/885971
Closes: https://github.com/gentoo/gentoo/pull/29038
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 eclass/python-utils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 568b2dbdfa46..83bf5d035c4a 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: python-utils-r1.eclass
@@ -633,7 +633,7 @@ python_optimize() {
                                # Python 3.9+
                                "${PYTHON}" -m compileall -j "${jobs}" -o 0 -o 
1 -o 2 --hardlink-dupes -q -f -d "${instpath}" "${d}"
                                ;;
-                       pypy)
+                       pypy|jython2.7)
                                "${PYTHON}" -m compileall -q -f -d 
"${instpath}" "${d}"
                                ;;
                        *)

Reply via email to