PYTHON-5588 Fix python binary used in FIPS tests (#2581)

This commit is contained in:
Steven Silvester 2025-10-07 12:30:06 -05:00 committed by GitHub
parent 84772bd8a9
commit 491f5ba77f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,7 @@ buildvariants:
batchtime: 1440
expansions:
VERSION: latest
PYTHON_BINARY: /usr/bin/python3.11
NO_EXT: "1"
REQUIRE_FIPS: "1"
tags: []
@ -21,6 +22,7 @@ buildvariants:
batchtime: 1440
expansions:
VERSION: latest
PYTHON_BINARY: /usr/bin/python3.11
NO_EXT: "1"
tags: []
- name: other-hosts-rhel8-power8-latest
@ -32,6 +34,7 @@ buildvariants:
batchtime: 1440
expansions:
VERSION: latest
PYTHON_BINARY: /usr/bin/python3.11
NO_EXT: "1"
tags: []
- name: other-hosts-rhel8-arm64-latest
@ -43,6 +46,7 @@ buildvariants:
batchtime: 1440
expansions:
VERSION: latest
PYTHON_BINARY: /usr/bin/python3.11
NO_EXT: "1"
tags: []
- name: other-hosts-amazon2023-latest
@ -54,6 +58,7 @@ buildvariants:
batchtime: 1440
expansions:
VERSION: latest
PYTHON_BINARY: /usr/bin/python3.11
NO_EXT: "1"
tags: [pr]

View File

@ -470,7 +470,8 @@ def create_alternative_hosts_variants():
version = "latest"
for host_name in OTHER_HOSTS:
expansions = dict(VERSION="latest")
# Use explicit Python 3.11 binary on the host since the default python3 is 3.9.
expansions = dict(VERSION="latest", PYTHON_BINARY="/usr/bin/python3.11")
handle_c_ext(C_EXTS[0], expansions)
host = HOSTS[host_name]
tags = []