From dd8bc9845c81ca26f5b9d3a9b851fce304368f1c Mon Sep 17 00:00:00 2001 From: Igor Machado Date: Thu, 7 Dec 2023 18:51:10 +0000 Subject: [PATCH] prefering .dll --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)