dev-python/pypy: Add a subslot check

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-09-14 08:34:59 +02:00
parent 72e1f61b13
commit 6eeb1f7c10

View File

@@ -56,6 +56,10 @@ src_compile() {
mv pypy/module/cpyext/parse/*.h include/ || die
pax-mark m pypy-c
# verify the subslot
local soabi=$(./pypy-c -c 'import sysconfig; print sysconfig.get_config_var("SOABI")')
[[ ${soabi#pypy-} == ${SLOT#*/} ]] || die "update subslot to ${soabi}"
einfo "Generating caches and CFFI modules ..."
# Generate Grammar and PatternGrammar pickles.