summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-12 06:30:10 +0100
committerMichał Górny <mgorny@gentoo.org>2022-12-12 06:43:28 +0100
commit9797939288464d838946d91c30a539c53bdd128d (patch)
tree3963439790457d76f355d0e088bd9149ee216038 /dev-python/pypy3
parentapp-containers/nerdctl: add 1.1.0 (diff)
downloadgentoo-9797939288464d838946d91c30a539c53bdd128d.tar.gz
gentoo-9797939288464d838946d91c30a539c53bdd128d.tar.bz2
gentoo-9797939288464d838946d91c30a539c53bdd128d.zip
dev-python/pypy3: Install pregenerated sysconfigdata
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypy3')
-rw-r--r--dev-python/pypy3/pypy3-7.3.10-r1.ebuild (renamed from dev-python/pypy3/pypy3-7.3.10.ebuild)14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/pypy3/pypy3-7.3.10.ebuild b/dev-python/pypy3/pypy3-7.3.10-r1.ebuild
index 398fd461b317..8f2a92264ffb 100644
--- a/dev-python/pypy3/pypy3-7.3.10.ebuild
+++ b/dev-python/pypy3/pypy3-7.3.10-r1.ebuild
@@ -92,6 +92,20 @@ src_compile() {
einfo "Generating caches and CFFI modules ..."
+ # Generate sysconfig data
+ local host_gnu_type=$(sh pypy/tool/release/config.guess)
+ local overrides=(
+ HOST_GNU_TYPE "${host_gnu_type:-unknown}"
+ INCLUDEPY "${EPREFIX}/usr/include/pypy3.9"
+ LIBDIR "${EPREFIX}/usr/$(get_libdir)"
+ TZPATH "${EPREFIX}/usr/share/zoneinfo"
+ WHEEL_PKG_DIR "${EPREFIX}/usr/lib/python/ensurepip"
+ )
+ ./pypy3.9-c -m sysconfig --generate-posix-vars "${overrides[@]}" || die
+ local outdir
+ outdir=$(<pybuilddir.txt) || die
+ cp "${outdir}"/_sysconfigdata__*.py lib-python/3/ || die
+
# Generate Grammar and PatternGrammar pickles.
./pypy3.9-c - <<-EOF || die "Generation of Grammar and PatternGrammar pickles failed"
import lib2to3.pygram