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