Skip to content

Commit

Permalink
setup.py: add export_symbols to fix compile of ctypes
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk authored and lazka committed Jul 19, 2023
1 parent 680d700 commit 697cc7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,10 @@ def detect_ctypes(self):
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
libraries=(['ole32', 'oleaut32', 'uuid'] if MS_WINDOWS else []),
export_symbols=(
['DllGetClassObject PRIVATE', 'DllCanUnloadNow PRIVATE']
if MS_WINDOWS else None
),
sources=sources)
self.add(ext)
# function my_sqrt() needs libm for sqrt()
Expand Down

0 comments on commit 697cc7d

Please sign in to comment.