Skip to content

Commit b0c5066

Browse files
committed
highs: (untested) attempt to locate library for non-linux OSs
1 parent 157b817 commit b0c5066

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mip/highs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
pkg_path = os.path.dirname(highspy.__file__)
3030

3131
# need library matching operating system
32-
if "linux" in sys.platform.lower():
32+
platform = sys.platform.lower()
33+
if "linux" in platform:
34+
pattern = "highs_bindings.*.so"
35+
elif platform.startswith("win"):
36+
pattern = "highs_bindings.*.pyd"
37+
elif any(platform.startswith(p) for p in ("darwin", "macos")):
3338
pattern = "highs_bindings.*.so"
3439
else:
3540
raise NotImplementedError(f"{sys.platform} not supported!")

0 commit comments

Comments
 (0)