diff --git a/setup.py b/setup.py index e06bf94..4e090fb 100644 --- a/setup.py +++ b/setup.py @@ -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)