eclass/distutils-r1: Sync with Gentoo

It's from Gentoo commit 26413a3fb5f9c37fbc14b7a567f6c1f7358555ac.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-11-03 07:08:31 +00:00 committed by Krzesimir Nowak
parent 0872254bb1
commit 34a5a65d3f

View File

@ -551,6 +551,7 @@ distutils_enable_tests() {
case ${1} in
import-check)
test_pkgs+=' dev-python/pytest-import-check[${PYTHON_USEDEP}]'
EPYTEST_PLUGINS+=( pytest-import-check )
;&
pytest)
test_pkgs+=' >=dev-python/pytest-7.4.4[${PYTHON_USEDEP}]'
@ -1287,7 +1288,7 @@ distutils-r1_python_compile() {
# from the oldest to the newest implementation,
# and the wheels are forward-compatible.
if [[
( ! ${DISTUTILS_EXT} && ${whl} == *py3-none-any* ) ||
( ! ${DISTUTILS_EXT} && ${whl} == *py3-none* ) ||
(
${EPYTHON} == python* &&
# freethreading does not support stable ABI