summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-18 16:55:25 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-18 16:59:10 +0100
commit022c8c77160c70887b66c76a835b356111202ce0 (patch)
tree4492f1e6b1b1c3273f3c61e3d13e16ff9cd4e153 /dev-python/pypy3_9
parentdev-python/pypy3_10: Inline compileall call, add excludes (diff)
downloadgentoo-022c8c77160c70887b66c76a835b356111202ce0.tar.gz
gentoo-022c8c77160c70887b66c76a835b356111202ce0.tar.bz2
gentoo-022c8c77160c70887b66c76a835b356111202ce0.zip
dev-python/pypy3_9: Inline compileall call, add excludes
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypy3_9')
-rw-r--r--dev-python/pypy3_9/pypy3_9-7.3.13-r1.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-python/pypy3_9/pypy3_9-7.3.13-r1.ebuild b/dev-python/pypy3_9/pypy3_9-7.3.13-r1.ebuild
index b75fb0c938f5..661ab0988ec8 100644
--- a/dev-python/pypy3_9/pypy3_9-7.3.13-r1.ebuild
+++ b/dev-python/pypy3_9/pypy3_9-7.3.13-r1.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.9
@@ -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