commit:     be85d7828375a5baa76988e9756b6423ba913092
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sat Feb 22 14:54:34 2025 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Sat Feb 22 14:54:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=be85d782

dev-lang/python: sync ::gentoo

Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-lang/python/python-3.11.11_p1.ebuild | 25 +++++++++++--------------
 dev-lang/python/python-3.13.0.ebuild     | 27 ++++++++++++---------------
 2 files changed, 23 insertions(+), 29 deletions(-)

diff --git a/dev-lang/python/python-3.11.11_p1.ebuild 
b/dev-lang/python/python-3.11.11_p1.ebuild
index ff6ca48..ab5bdde 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}
@@ -622,17 +622,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
 }

diff --git a/dev-lang/python/python-3.13.0.ebuild 
b/dev-lang/python/python-3.13.0.ebuild
index 1113dc6..4cf0b5b 100644
--- a/dev-lang/python/python-3.13.0.ebuild
+++ b/dev-lang/python/python-3.13.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
@@ -7,7 +7,7 @@ LLVM_COMPAT=( 18 )
 LLVM_OPTIONAL=1
 WANT_LIBTOOL="none"
 
-inherit autotools check-reqs flag-o-matic linux-info llvm-r1
+inherit autotools check-reqs eapi9-ver flag-o-matic linux-info llvm-r1
 inherit multiprocessing pax-utils python-utils-r1 toolchain-funcs
 inherit verify-sig
 
@@ -663,17 +663,14 @@ src_install() {
 }
 
 pkg_postinst() {
-       local v
-       for v in ${REPLACING_VERSIONS}; do
-               if ver_test "${v}" -lt 3.13.0_beta2; then
-                       ewarn "Python 3.13.0b2 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.13 modules, e.g. using:"
-                       ewarn
-                       ewarn "  emerge -1v /usr/lib/python3.13/site-packages"
-               fi
-       done
+       if ver_replacing -lt 3.13.0_beta2; then
+               ewarn "Python 3.13.0b2 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.13 modules, e.g. using:"
+               ewarn
+               ewarn "  emerge -1v /usr/lib/python3.13/site-packages"
+       fi
 }

Reply via email to