Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/distutils-r1.eclass | 13 ++++++++++---
 1 file 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
-- 
2.47.0


Reply via email to