File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def build_extension(self, ext):
216
216
"rust build failed; unable to find executable in %s" % target_dir
217
217
)
218
218
else :
219
- if sys .platform == "win32" :
219
+ if sys .platform == "win32" or sys . platform == "cygwin" :
220
220
dylib_ext = "dll"
221
221
elif sys .platform == "darwin" :
222
222
dylib_ext = "dylib"
@@ -282,7 +282,8 @@ def build_extension(self, ext):
282
282
except subprocess .CalledProcessError as e :
283
283
pass
284
284
285
- if executable :
285
+ # executables and win32(cygwin)-dll's need X bits
286
+ if executable or sys .platform == "win32" or sys .platform == "cygwin" :
286
287
mode = os .stat (ext_path ).st_mode
287
288
mode |= (mode & 0o444 ) >> 2 # copy R bits to X
288
289
os .chmod (ext_path , mode )
You can’t perform that action at this time.
0 commit comments