File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -218,20 +218,21 @@ def build_extension(self, ext):
218
218
219
219
shutil .copyfile (dylib_path , ext_path )
220
220
221
- if not debug_build :
222
- args = []
223
- if ext .strip == Strip .All :
224
- args .append ('-x' )
225
- elif ext .strip == Strip .Debug :
226
- args .append ('-S' )
227
-
228
- if args :
229
- args .insert (0 , 'strip' )
230
- args .append (ext_path )
231
- try :
232
- output = subprocess .check_output (args , env = env )
233
- except subprocess .CalledProcessError as e :
234
- pass
221
+ if sys .platform != "win32" :
222
+ if not debug_build :
223
+ args = []
224
+ if ext .strip == Strip .All :
225
+ args .append ('-x' )
226
+ elif ext .strip == Strip .Debug :
227
+ args .append ('-S' )
228
+
229
+ if args :
230
+ args .insert (0 , 'strip' )
231
+ args .append (ext_path )
232
+ try :
233
+ output = subprocess .check_output (args , env = env )
234
+ except subprocess .CalledProcessError as e :
235
+ pass
235
236
236
237
if executable :
237
238
mode = os .stat (ext_path ).st_mode
You can’t perform that action at this time.
0 commit comments