Skip to content

Commit d98049c

Browse files
authored
PYTHON-5502 [v4.14] Fix handling of c extensions in Azure and GCP VMs (#2487)
1 parent f66ec0f commit d98049c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.evergreen/run-mongodb-oidc-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ if [ ${OIDC_ENV} == "k8s" ]; then
88
SUB_TEST_NAME=$K8S_VARIANT-remote
99
else
1010
SUB_TEST_NAME=$OIDC_ENV-remote
11+
sudo apt-get install -y python3-dev build-essential
1112
fi
13+
1214
bash ./.evergreen/just.sh setup-tests auth_oidc $SUB_TEST_NAME
1315
bash ./.evergreen/just.sh run-tests "${@:1}"
1416

.evergreen/scripts/kms_tester.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def _setup_azure_vm(base_env: dict[str, str]) -> None:
3030
env["AZUREKMS_CMD"] = "tar xf mongo-python-driver.tgz"
3131
run_command(f"{azure_dir}/run-command.sh", env=env)
3232

33+
env["AZUREKMS_CMD"] = "sudo apt-get install -y python3-dev build-essential"
34+
run_command(f"{azure_dir}/run-command.sh", env=env)
35+
3336
env["AZUREKMS_CMD"] = "bash .evergreen/just.sh setup-tests kms azure-remote"
3437
run_command(f"{azure_dir}/run-command.sh", env=env)
3538
LOGGER.info("Setting up Azure VM... done.")
@@ -47,6 +50,9 @@ def _setup_gcp_vm(base_env: dict[str, str]) -> None:
4750
env["GCPKMS_CMD"] = "tar xf mongo-python-driver.tgz"
4851
run_command(f"{gcp_dir}/run-command.sh", env=env)
4952

53+
env["GCPKMS_CMD"] = "sudo apt-get install -y python3-dev build-essential"
54+
run_command(f"{gcp_dir}/run-command.sh", env=env)
55+
5056
env["GCPKMS_CMD"] = "bash ./.evergreen/just.sh setup-tests kms gcp-remote"
5157
run_command(f"{gcp_dir}/run-command.sh", env=env)
5258
LOGGER.info("Setting up GCP VM...")

.evergreen/scripts/oidc_tester.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
import os
44

5-
from utils import DRIVERS_TOOLS, TMP_DRIVER_FILE, create_archive, read_env, run_command, write_env
5+
from utils import (
6+
DRIVERS_TOOLS,
7+
TMP_DRIVER_FILE,
8+
create_archive,
9+
read_env,
10+
run_command,
11+
write_env,
12+
)
613

714
K8S_NAMES = ["aks", "gke", "eks"]
815
K8S_REMOTE_NAMES = [f"{n}-remote" for n in K8S_NAMES]

0 commit comments

Comments
 (0)