summaryrefslogtreecommitdiff
path: root/dev-lang/python/python-3.11.11_p1.ebuild
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2025-02-14 15:11:08 +0100
committerUlrich Müller <ulm@gentoo.org>2025-02-22 10:38:08 +0100
commitd3daac93829cbba2d2ca18c066a56c26a6f170fe (patch)
tree7d2e37fdace6a62b199913aa992788b9492521a2 /dev-lang/python/python-3.11.11_p1.ebuild
parent10f371336c826cf6de3641852e64e2d90ae31687 (diff)
downloadgentoo-d3daac93829cbba2d2ca18c066a56c26a6f170fe.tar.gz
gentoo-d3daac93829cbba2d2ca18c066a56c26a6f170fe.tar.bz2
gentoo-d3daac93829cbba2d2ca18c066a56c26a6f170fe.zip
dev-lang/python: Port to ver_replacing
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.11.11_p1.ebuild')
-rw-r--r--dev-lang/python/python-3.11.11_p1.ebuild25
1 files changed, 11 insertions, 14 deletions
diff --git a/dev-lang/python/python-3.11.11_p1.ebuild b/dev-lang/python/python-3.11.11_p1.ebuild
index 2c83f81efcfa..0d603d309282 100644
--- a/dev-lang/python/python-3.11.11_p1.ebuild
+++ b/dev-lang/python/python-3.11.11_p1.ebuild
@@ -4,7 +4,7 @@
EAPI="8"
WANT_LIBTOOL="none"
-inherit autotools check-reqs flag-o-matic multiprocessing pax-utils
+inherit autotools check-reqs eapi9-ver flag-o-matic multiprocessing pax-utils
inherit prefix python-utils-r1 toolchain-funcs verify-sig
MY_PV=${PV/_rc/rc}
@@ -613,17 +613,14 @@ src_install() {
}
pkg_postinst() {
- local v
- for v in ${REPLACING_VERSIONS}; do
- if ver_test "${v}" -lt 3.11.0_beta4-r2; then
- ewarn "Python 3.11.0b4 has changed its module ABI. The .pyc files"
- ewarn "installed previously are no longer valid and will be regenerated"
- ewarn "(or ignored) on the next import. This may cause sandbox failures"
- ewarn "when installing some packages and checksum mismatches when removing"
- ewarn "old versions. To actively prevent this, rebuild all packages"
- ewarn "installing Python 3.11 modules, e.g. using:"
- ewarn
- ewarn " emerge -1v /usr/lib/python3.11/site-packages"
- fi
- done
+ if ver_replacing -lt 3.11.0_beta4-r2; then
+ ewarn "Python 3.11.0b4 has changed its module ABI. The .pyc files"
+ ewarn "installed previously are no longer valid and will be regenerated"
+ ewarn "(or ignored) on the next import. This may cause sandbox failures"
+ ewarn "when installing some packages and checksum mismatches when removing"
+ ewarn "old versions. To actively prevent this, rebuild all packages"
+ ewarn "installing Python 3.11 modules, e.g. using:"
+ ewarn
+ ewarn " emerge -1v /usr/lib/python3.11/site-packages"
+ fi
}