commit:     d4bbfc9743b2af3812d54c85a5c907699e9c3981
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 18 15:53:59 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 18 15:59:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4bbfc97

dev-python/pypy3_10: Inline compileall call, add excludes

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pypy3_10/pypy3_10-7.3.13_p3.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dev-python/pypy3_10/pypy3_10-7.3.13_p3.ebuild 
b/dev-python/pypy3_10/pypy3_10-7.3.13_p3.ebuild
index a12e9f0f8bdc..c463e1f54501 100644
--- a/dev-python/pypy3_10/pypy3_10-7.3.13_p3.ebuild
+++ b/dev-python/pypy3_10/pypy3_10-7.3.13_p3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit pax-utils python-utils-r1 toolchain-funcs
+inherit multiprocessing pax-utils toolchain-funcs
 
 PYPY_PV=${PV%_p*}
 PYVER=3.10
@@ -198,13 +198,15 @@ src_install() {
        fi
        dosym ../python/EXTERNALLY-MANAGED "${dest}/EXTERNALLY-MANAGED"
 
-       local -x EPYTHON=pypy3
        local -x PYTHON=${ED}/usr/bin/pypy${PYVER}-c-${PYPY_PV}
        # temporarily copy to build tree to facilitate module builds
        cp -p "${BROOT}/usr/bin/pypy${PYVER}-c-${PYPY_PV}" "${PYTHON}" || die
 
        einfo "Byte-compiling Python standard library..."
-       python_optimize "${ED}${dest}"
+       # exclude list from CPython Makefile.pre.in
+       "${PYTHON}" -m compileall -j "$(makeopts_jobs)" -o 0 -o 1 -o 2 \
+               --hardlink-dupes -q -f -d "${dest}" "${ED}${dest}" \
+               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' || 
die
 
        # remove to avoid collisions
        rm "${PYTHON}" || die

Reply via email to