diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-05-17 10:06:17 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-06-04 04:06:27 +0200 |
| commit | ba973e791948175b1aa13a5c9cc193f6ea80fc61 (patch) | |
| tree | f8116e48b4d9ef3d4f3119374f047ba937e5ed69 /eclass/python-utils-r1.eclass | |
| parent | 4d2906625a2322f5d551d5db3957e4be0749cdab (diff) | |
| download | gentoo-ba973e791948175b1aa13a5c9cc193f6ea80fc61.tar.gz gentoo-ba973e791948175b1aa13a5c9cc193f6ea80fc61.tar.bz2 gentoo-ba973e791948175b1aa13a5c9cc193f6ea80fc61.zip | |
python-utils-r1.eclass: Fix python_optimize output
Fix `python_optimize()` to correctly output directories once again,
after I removed `${instpath}` while switching to prefix stripping.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/41560
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
| -rw-r--r-- | eclass/python-utils-r1.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 \ |
