Skip to content

Commit 697cc7d

Browse files
naveen521kklazka
authored andcommitted
setup.py: add export_symbols to fix compile of ctypes
1 parent 680d700 commit 697cc7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ def detect_ctypes(self):
14331433
extra_compile_args=extra_compile_args,
14341434
extra_link_args=extra_link_args,
14351435
libraries=(['ole32', 'oleaut32', 'uuid'] if MS_WINDOWS else []),
1436+
export_symbols=(
1437+
['DllGetClassObject PRIVATE', 'DllCanUnloadNow PRIVATE']
1438+
if MS_WINDOWS else None
1439+
),
14361440
sources=sources)
14371441
self.add(ext)
14381442
# function my_sqrt() needs libm for sqrt()

0 commit comments

Comments
 (0)