File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ jobs:
133
133
runs-on : macos-latest
134
134
needs : check_source
135
135
if : needs.check_source.outputs.run_tests == 'true'
136
+ env :
137
+ PYTHONSTRICTEXTENSIONBUILD : 1
136
138
steps :
137
139
- uses : actions/checkout@v2
138
140
- name : Configure CPython
@@ -151,6 +153,7 @@ jobs:
151
153
if : needs.check_source.outputs.run_tests == 'true'
152
154
env :
153
155
OPENSSL_VER : 1.1.1k
156
+ PYTHONSTRICTEXTENSIONBUILD : 1
154
157
steps :
155
158
- uses : actions/checkout@v2
156
159
- name : Install Dependencies
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 @@ -540,6 +540,9 @@ def print_three_column(lst):
540
540
"APIs, https://github.com/libressl-portable/portable/issues/381" )
541
541
print ()
542
542
543
+ if os .environ .get ("PYTHONSTRICTEXTENSIONBUILD" ) and (self .failed or self .failed_on_import ):
544
+ raise RuntimeError ("Failed to build some stdlib modules" )
545
+
543
546
def build_extension (self , ext ):
544
547
545
548
if ext .name == '_ctypes' :
You can’t perform that action at this time.
0 commit comments