Skip to content

Commit 875630e

Browse files
committed
PYTHON-5588 Fix python binary used in FIPS tests
1 parent 4697436 commit 875630e

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
@@ -469,7 +469,8 @@ def create_alternative_hosts_variants():
469469

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

0 commit comments

Comments
 (0)