Skip to content

Commit

Permalink
more robust way to find gurobi
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Mar 25, 2024
1 parent 67eea6c commit 0fdfae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

# look for various gurobi versions, which are annoyingly
# suffixed with the version number, and wildcards don't work
for v in ["100"]:

for v in range(80, 200):
GUROBI_LIB = f"libgurobi{v}" if os.name == "nt" else f"gurobi{v}"
if (gurolib := util.find_library(GUROBI_LIB)) is not None:
print("FOUND GUROBI library: ", gurolib)
Expand Down

0 comments on commit 0fdfae7

Please sign in to comment.