We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6641c6 commit c9ed19bCopy full SHA for c9ed19b
setup.py
@@ -1417,11 +1417,12 @@ def detect_ctypes(self):
1417
include_dirs=include_dirs,
1418
extra_compile_args=extra_compile_args,
1419
extra_link_args=extra_link_args,
1420
- libraries=[],
+ libraries=(['ole32', 'oleaut32', 'uuid'] if MS_WINDOWS else []),
1421
sources=sources)
1422
self.add(ext)
1423
# function my_sqrt() needs libm for sqrt()
1424
- self.addext(Extension('_ctypes_test', ['_ctypes/_ctypes_test.c']))
+ self.addext(Extension('_ctypes_test', ['_ctypes/_ctypes_test.c'],
1425
+ libraries=(['oleaut32'] if MS_WINDOWS else [])))
1426
1427
ffi_inc = sysconfig.get_config_var("LIBFFI_INCLUDEDIR")
1428
ffi_lib = None
0 commit comments