Skip to content

Commit 491f5ba

Browse files
authored
PYTHON-5588 Fix python binary used in FIPS tests (#2581)
1 parent 84772bd commit 491f5ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildvariants:
99
batchtime: 1440
1010
expansions:
1111
VERSION: latest
12+
PYTHON_BINARY: /usr/bin/python3.11
1213
NO_EXT: "1"
1314
REQUIRE_FIPS: "1"
1415
tags: []
@@ -21,6 +22,7 @@ buildvariants:
2122
batchtime: 1440
2223
expansions:
2324
VERSION: latest
25+
PYTHON_BINARY: /usr/bin/python3.11
2426
NO_EXT: "1"
2527
tags: []
2628
- name: other-hosts-rhel8-power8-latest
@@ -32,6 +34,7 @@ buildvariants:
3234
batchtime: 1440
3335
expansions:
3436
VERSION: latest
37+
PYTHON_BINARY: /usr/bin/python3.11
3538
NO_EXT: "1"
3639
tags: []
3740
- name: other-hosts-rhel8-arm64-latest
@@ -43,6 +46,7 @@ buildvariants:
4346
batchtime: 1440
4447
expansions:
4548
VERSION: latest
49+
PYTHON_BINARY: /usr/bin/python3.11
4650
NO_EXT: "1"
4751
tags: []
4852
- name: other-hosts-amazon2023-latest
@@ -54,6 +58,7 @@ buildvariants:
5458
batchtime: 1440
5559
expansions:
5660
VERSION: latest
61+
PYTHON_BINARY: /usr/bin/python3.11
5762
NO_EXT: "1"
5863
tags: [pr]
5964

.evergreen/scripts/generate_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ def create_alternative_hosts_variants():
470470

471471
version = "latest"
472472
for host_name in OTHER_HOSTS:
473-
expansions = dict(VERSION="latest")
473+
# Use explicit Python 3.11 binary on the host since the default python3 is 3.9.
474+
expansions = dict(VERSION="latest", PYTHON_BINARY="/usr/bin/python3.11")
474475
handle_c_ext(C_EXTS[0], expansions)
475476
host = HOSTS[host_name]
476477
tags = []

0 commit comments

Comments
 (0)