PYTHON-5611 Fix python binary usage for Other Hosts (#2586)

This commit is contained in:
Steven Silvester 2025-10-08 12:26:16 -05:00 committed by GitHub
parent 5eb1edf315
commit 6d91859659
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View File

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

View File

@ -470,13 +470,14 @@ def create_alternative_hosts_variants():
version = "latest"
for host_name in OTHER_HOSTS:
# 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")
expansions = dict(VERSION="latest")
handle_c_ext(C_EXTS[0], expansions)
host = HOSTS[host_name]
tags = []
if "fips" in host_name.lower():
expansions["REQUIRE_FIPS"] = "1"
# Use explicit Python 3.11 binary on the host since the default python3 is 3.9.
expansions["PYTHON_BINARY"] = "/usr/bin/python3.11"
if "amazon" in host_name.lower():
tags.append("pr")
variants.append(