File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,12 @@ def run(self):
132
132
log .info ("Detected changes on compiler optimizations, force rebuilding" )
133
133
self .force = True
134
134
135
- import atexit
136
- def report ():
135
+ def report (copt ):
137
136
log .info ("\n ########### CLIB COMPILER OPTIMIZATION ###########" )
138
- log .info (self . compiler_opt .report (full = True ))
137
+ log .info (copt .report (full = True ))
139
138
140
- atexit .register (report )
139
+ import atexit
140
+ atexit .register (report , self .compiler_opt )
141
141
142
142
if self .have_f_sources ():
143
143
from numpy .distutils .fcompiler import new_fcompiler
Original file line number Diff line number Diff line change @@ -160,11 +160,12 @@ def run(self):
160
160
log .info ("Detected changes on compiler optimizations, force rebuilding" )
161
161
self .force = True
162
162
163
- import atexit
164
- def report ():
163
+ def report (copt ):
165
164
log .info ("\n ########### EXT COMPILER OPTIMIZATION ###########" )
166
- log .info (self .compiler_opt .report (full = True ))
167
- atexit .register (report )
165
+ log .info (copt .report (full = True ))
166
+
167
+ import atexit
168
+ atexit .register (report , self .compiler_opt )
168
169
169
170
# Setup directory for storing generated extra DLL files on Windows
170
171
self .extra_dll_dir = os .path .join (self .build_temp , '.libs' )
You can’t perform that action at this time.
0 commit comments