Skip to content

Commit 12420c1

Browse files
committed
Fix running Python on macOS
1 parent 414e497 commit 12420c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/python/flint_ctypes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
import sys
44
import functools
55

6-
libflint = ctypes.CDLL("libflint.so")
6+
if sys.platform == "darwin":
7+
libflint = ctypes.CDLL("libflint.dylib")
8+
else:
9+
libflint = ctypes.CDLL("libflint.so")
710
libcalcium = libarb = libgr = libflint
811

912
T_TRUE = 0

0 commit comments

Comments
 (0)