File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,9 +109,13 @@ def __init__(self, dist):
109109
110110class BuildExtraLibraries (BuildExtCommand ):
111111 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
112117 for package in good_packages :
113118 package .do_custom_build ()
114-
115119 return BuildExtCommand .run (self )
116120
117121
Original file line number Diff line number Diff line change @@ -203,21 +203,6 @@ def print_line(*args, **kwargs):
203203 print_status = print_message = print_raw = print_line
204204
205205
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-
221206def make_extension (name , files , * args , ** kwargs ):
222207 """
223208 Make a new extension. Automatically sets include_dirs and
You can’t perform that action at this time.
0 commit comments