We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157b817 commit b0c5066Copy full SHA for b0c5066
mip/highs.py
@@ -29,7 +29,12 @@
29
pkg_path = os.path.dirname(highspy.__file__)
30
31
# need library matching operating system
32
- if "linux" in sys.platform.lower():
+ 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")):
38
pattern = "highs_bindings.*.so"
39
else:
40
raise NotImplementedError(f"{sys.platform} not supported!")
0 commit comments