Skip to content

Commit 61daad1

Browse files
committed
Enable dynamic linking on windows
1 parent 7b4ac6b commit 61daad1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,15 @@ def build_extension(self, ext):
6666
elif Path(prefix, "Library", "include", "isa-l").exists():
6767
ext.include_dirs = [os.path.join(prefix, "Library",
6868
"include")]
69+
ext.library_dirs = [os.path.join(prefix, "Library", "lib")]
6970
break
70-
ext.libraries = ["isal"]
71+
if SYSTEM_IS_UNIX:
72+
ext.libraries = ["isal"] # libisal.so*
73+
elif SYSTEM_IS_WINDOWS:
74+
ext.libraries = ["isa-l"] # isa-l.dll
75+
else:
76+
raise NotImplementedError(
77+
f"Unsupported platform: {sys.platform}")
7178
else:
7279
isa_l_prefix_dir = build_isa_l()
7380
if SYSTEM_IS_UNIX:

0 commit comments

Comments
 (0)