From ba973e791948175b1aa13a5c9cc193f6ea80fc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 17 May 2025 10:06:17 +0200 Subject: python-utils-r1.eclass: Fix python_optimize output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix `python_optimize()` to correctly output directories once again, after I removed `${instpath}` while switching to prefix stripping. Signed-off-by: Michał Górny Part-of: https://github.com/gentoo/gentoo/pull/41560 Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/python-utils-r1.eclass') diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index a1ca388ab730..27a85410aadf 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -624,7 +624,7 @@ python_optimize() { local jobs=$(makeopts_jobs) local d for d; do - einfo "Optimize Python modules for ${instpath}" + einfo "Optimizing Python modules in ${d#${D}}" # NB: '-s' makes the path relative, so we need '-p /' to make it # absolute again; https://github.com/python/cpython/issues/133503 "${PYTHON}" -m compileall -j "${jobs}" -o 0 -o 1 -o 2 \ -- cgit v1.2.3