Skip to content

Commit 30e4cce

Browse files
authored
PYTHON-5008 Do not build c extensions on other hosts (mongodb#2031)
1 parent 1b89da4 commit 30e4cce

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,35 @@ buildvariants:
1616
run_on:
1717
- rhel92-fips
1818
batchtime: 10080
19+
expansions:
20+
NO_EXT: "1"
1921
- name: other-hosts-rhel8-zseries
2022
tasks:
2123
- name: .6.0 .standalone !.sync_async
2224
display_name: Other hosts RHEL8-zseries
2325
run_on:
2426
- rhel8-zseries-small
2527
batchtime: 10080
28+
expansions:
29+
NO_EXT: "1"
2630
- name: other-hosts-rhel8-power8
2731
tasks:
2832
- name: .6.0 .standalone !.sync_async
2933
display_name: Other hosts RHEL8-POWER8
3034
run_on:
3135
- rhel8-power-small
3236
batchtime: 10080
37+
expansions:
38+
NO_EXT: "1"
3339
- name: other-hosts-rhel8-arm64
3440
tasks:
3541
- name: .6.0 .standalone !.sync_async
3642
display_name: Other hosts RHEL8-arm64
3743
run_on:
3844
- rhel82-arm64-small
3945
batchtime: 10080
46+
expansions:
47+
NO_EXT: "1"
4048

4149
# Atlas connect tests
4250
- name: atlas-connect-rhel8-python3.9

.evergreen/scripts/generate_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ def create_alternative_hosts_variants():
758758
)
759759
)
760760

761+
expansions = dict()
762+
handle_c_ext(C_EXTS[0], expansions)
761763
for host_name in OTHER_HOSTS:
762764
host = HOSTS[host_name]
763765
variants.append(
@@ -766,6 +768,7 @@ def create_alternative_hosts_variants():
766768
display_name=get_display_name("Other hosts", host),
767769
batchtime=batchtime,
768770
host=host,
771+
expansions=expansions,
769772
)
770773
)
771774
return variants

0 commit comments

Comments
 (0)