diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-08 20:29:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-14 14:35:41 +0200 |
commit | a1634bcc344835b84f0e7b5676de93c7a93857e7 (patch) | |
tree | 8390c09b8ae5361572bbc4ef812e14d4a6815623 /eclass | |
parent | app-portage/gpyutils: Add python3.13t (diff) | |
download | gentoo-a1634bcc344835b84f0e7b5676de93c7a93857e7.tar.gz gentoo-a1634bcc344835b84f0e7b5676de93c7a93857e7.tar.bz2 gentoo-a1634bcc344835b84f0e7b5676de93c7a93857e7.zip |
distutils-r1.eclass: Do not use stable ABI wheels in freethreading
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index c3a7d112b03f..7ab8dcae3265 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1494,9 +1494,16 @@ distutils-r1_python_compile() { # that this relies on the assumption that we're building # from the oldest to the newest implementation, # and the wheels are forward-compatible. - if [[ ( ! ${DISTUTILS_EXT} && ${whl} == *py3-none-any* ) || - ( ${EPYTHON} == python* && ${whl} == *-abi3-* ) ]] - then + if [[ + ( ! ${DISTUTILS_EXT} && ${whl} == *py3-none-any* ) || + ( + ${EPYTHON} == python* && + # freethreading does not support stable ABI + # at the moment + ${EPYTHON} != *t && + ${whl} == *-abi3-* + ) + ]]; then distutils_wheel_install "${BUILD_DIR}/install" "${whl}" return fi |