File tree 2 files changed +5
-16
lines changed 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,13 @@ def __init__(self, dist):
109
109
110
110
class BuildExtraLibraries (BuildExtCommand ):
111
111
def run (self ):
112
+ # Remove the -Wstrict-prototypes option, it's not valid for C++.
113
+ try :
114
+ self .compiler .compiler_so .remove ('-Wstrict-prototypes' )
115
+ except (ValueError , AttributeError ):
116
+ pass
112
117
for package in good_packages :
113
118
package .do_custom_build ()
114
-
115
119
return BuildExtCommand .run (self )
116
120
117
121
Original file line number Diff line number Diff line change @@ -203,21 +203,6 @@ def print_line(*args, **kwargs):
203
203
print_status = print_message = print_raw = print_line
204
204
205
205
206
- # Remove the -Wstrict-prototypes option, is it's not valid for C++
207
- customize_compiler = distutils .command .build_ext .customize_compiler
208
-
209
-
210
- def my_customize_compiler (compiler ):
211
- retval = customize_compiler (compiler )
212
- try :
213
- compiler .compiler_so .remove ('-Wstrict-prototypes' )
214
- except (ValueError , AttributeError ):
215
- pass
216
- return retval
217
-
218
- distutils .command .build_ext .customize_compiler = my_customize_compiler
219
-
220
-
221
206
def make_extension (name , files , * args , ** kwargs ):
222
207
"""
223
208
Make a new extension. Automatically sets include_dirs and
You can’t perform that action at this time.
0 commit comments