File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ jobs:
119
119
runs-on : macos-latest
120
120
needs : check_source
121
121
if : needs.check_source.outputs.run_tests == 'true'
122
+ env :
123
+ PYTHONSTRICTEXTENSIONBUILD : 1
122
124
steps :
123
125
- uses : actions/checkout@v2
124
126
- name : Configure CPython
@@ -137,6 +139,7 @@ jobs:
137
139
if : needs.check_source.outputs.run_tests == 'true'
138
140
env :
139
141
OPENSSL_VER : 1.1.1k
142
+ PYTHONSTRICTEXTENSIONBUILD : 1
140
143
steps :
141
144
- uses : actions/checkout@v2
142
145
- name : Register gcc problem matcher
@@ -227,6 +230,7 @@ jobs:
227
230
if : needs.check_source.outputs.run_tests == 'true'
228
231
env :
229
232
OPENSSL_VER : 1.1.1k
233
+ PYTHONSTRICTEXTENSIONBUILD : 1
230
234
ASAN_OPTIONS : detect_leaks=0:allocator_may_return_null=1:handle_segv=0
231
235
steps :
232
236
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 18
18
# Set rpath with env var instead of -Wl,-rpath linker flag
19
19
# OpenSSL ignores LDFLAGS when linking bin/openssl
20
20
- LD_RUN_PATH="${OPENSSL_DIR}/lib"
21
+ - PYTHONSTRICTEXTENSIONBUILD=1
21
22
22
23
branches :
23
24
only :
Original file line number Diff line number Diff line change @@ -571,6 +571,9 @@ def print_three_column(lst):
571
571
print ("Custom linker flags may require --with-openssl-rpath=auto" )
572
572
print ()
573
573
574
+ if os .environ .get ("PYTHONSTRICTEXTENSIONBUILD" ) and (self .failed or self .failed_on_import ):
575
+ raise RuntimeError ("Failed to build some stdlib modules" )
576
+
574
577
def build_extension (self , ext ):
575
578
576
579
if ext .name == '_ctypes' :
You can’t perform that action at this time.
0 commit comments