Skip to content

Commit

Permalink
prefering .dll
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed Dec 7, 2023
1 parent 317fc2a commit dd8bc98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def get_export_symbols(self, ext):
def get_ext_filename(self, ext_name):
if self._ctypes:
if os.name == 'nt': # Windows
return ext_name + '.pyd'
# only use .pyd if PyInit_foo() exists...
return ext_name + '.dll'
else:
return ext_name + '.so'
return super().get_ext_filename(ext_name)
Expand Down

0 comments on commit dd8bc98

Please sign in to comment.