Skip to content

Commit fd66f4c

Browse files
authored
Minor Change TO BUIL (#1127)
1 parent 111dfa1 commit fd66f4c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@
5959
libname = "scip"
6060
else:
6161
# assume that SCIP is installed on the system
62-
libdir = os.path.abspath(os.path.join(scipoptdir, "lib"))
62+
# check for lib64 first (newer SCIP tarballs), then lib
63+
if os.path.exists(os.path.join(scipoptdir, "lib64")):
64+
libdir = os.path.abspath(os.path.join(scipoptdir, "lib64"))
65+
elif os.path.exists(os.path.join(scipoptdir, "lib")):
66+
libdir = os.path.abspath(os.path.join(scipoptdir, "lib"))
67+
else:
68+
sys.exit("Could not find lib or lib64 directory in SCIPOPTDIR=%s" % scipoptdir)
6369
libname = "libscip" if platform.system() == "Windows" else "scip"
6470

6571
print("Using include path %s." % includedirs)

0 commit comments

Comments
 (0)