From 018063867cbba031e2e7329296804fc9f5598f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 24 Oct 2025 12:58:39 +0200 Subject: [PATCH] INSTALL_OR_SKIP: Support python3.X-freethreading-devel installation It assumed python3.Xt-devel package name and that is not correct, this way, we go for files and we don't care what package they are in. All our Pythons have the -config file, but not PyPys, so we keep that installation optional (unchecked) and we keep the original -devel installation as well. --- smoke/venv.sh | 1 + tests.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/smoke/venv.sh b/smoke/venv.sh index 56ffd1e..4088279 100755 --- a/smoke/venv.sh +++ b/smoke/venv.sh @@ -18,6 +18,7 @@ cd "$workdir" if [ "$INSTALL_OR_SKIP" == "true" ]; then [ ! -f "/usr/bin/$PYTHON" ] && dnf -y install "/usr/bin/$PYTHON" || : + [ ! -f "/usr/bin/${PYTHON}-config" ] && dnf -y install "/usr/bin/${PYTHON}-config" || : dnf -y install "$PYTHON-devel" || : if [ ! -f "/usr/bin/$PYTHON" ]; then echo "/usr/bin/$PYTHON not installable, skipping this test" diff --git a/tests.yml b/tests.yml index 02a52fa..fae8c2a 100644 --- a/tests.yml +++ b/tests.yml @@ -42,6 +42,9 @@ - smoke312: dir: smoke run: runuser testuser -c 'VERSION=3.12 METHOD=venv ./venv.sh' + - smoke314t_optional: + dir: smoke + run: VERSION=3.14t METHOD=venv INSTALL_OR_SKIP=true ./venv.sh - smoke39_seeder_pip: dir: smoke run: runuser testuser -c 'VERSION=3.9 METHOD=virtualenv-seeder-pip ./venv.sh'