Skip to content

Commit 9dcd9a1

Browse files
committed
#2599 install sundials 6 in install script
1 parent 926a3c2 commit 9dcd9a1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/install_KLU_Sundials.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def download_extract_library(url, download_dir):
5555
)
5656

5757
# 1 --- Download SuiteSparse
58-
suitesparse_version = "5.6.0"
58+
suitesparse_version = "6.0.3"
5959
suitesparse_url = (
6060
"https://github.com/DrTimothyAldenDavis/"
6161
+ "SuiteSparse/archive/v{}.tar.gz".format(suitesparse_version)
@@ -70,12 +70,14 @@ def download_extract_library(url, download_dir):
7070
suitesparse_dir = "SuiteSparse-{}".format(suitesparse_version)
7171
suitesparse_src = os.path.join(download_dir, suitesparse_dir)
7272
print("-" * 10, "Building SuiteSparse_config", "-" * 40)
73-
make_cmd = ["make", "library"]
73+
make_cmd = [
74+
"make",
75+
"library",
76+
"CMAKE_OPTIONS=\"-DCMAKE_INSTALL_PREFIX={}\"".format(install_dir),
77+
]
7478
install_cmd = [
7579
"make",
7680
"install",
77-
"INSTALL={}".format(install_dir),
78-
"INSTALL_DOC=/tmp/doc",
7981
]
8082
print("-" * 10, "Building SuiteSparse", "-" * 40)
8183
for libdir in ["SuiteSparse_config", "AMD", "COLAMD", "BTF", "KLU"]:
@@ -84,7 +86,7 @@ def download_extract_library(url, download_dir):
8486
subprocess.run(install_cmd, cwd=build_dir)
8587

8688
# 2 --- Download SUNDIALS
87-
sundials_version = "5.1.0"
89+
sundials_version = "6.5.0"
8890
sundials_url = (
8991
"https://github.com/LLNL/sundials/"
9092
+ f"releases/download/v{sundials_version}/sundials-{sundials_version}.tar.gz"

0 commit comments

Comments
 (0)