From 496ddfcc047cdad17456532b3045dfd4c1e829b7 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 9 Jan 2023 18:41:29 +0100 Subject: [PATCH] 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 --- 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 568b2dbdfa46d..83bf5d035c4a1 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}" ;; *)