Skip to content

Commit fe6b428

Browse files
committed
Pull in other changes
1 parent 1195321 commit fe6b428

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

install_KLU_Sundials.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def install_sundials():
8080
"-DCMAKE_INSTALL_NAME_DIR=" + KLU_LIBRARY_DIR,
8181
]
8282

83-
# try to find OpenMP on mac
83+
# try to find OpenMP on Mac
8484
if platform.system() == "Darwin":
85-
# flags to find OpenMP on mac
85+
# flags to find OpenMP on Mac
8686
if platform.processor() == "arm":
8787
OpenMP_C_FLAGS = (
8888
"-Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include"
@@ -118,14 +118,9 @@ def install_sundials():
118118

119119
build_dir = pathlib.Path("build_sundials")
120120
if not os.path.exists(build_dir):
121-
print("\n-" * 10, "Creating build dir", "-" * 40)
122121
os.makedirs(build_dir)
123-
124122
sundials_src = "../sundials"
125-
print("-" * 10, "Running CMake prepare", "-" * 40)
126123
subprocess.run(["cmake", sundials_src, *cmake_args], cwd=build_dir, check=True)
127-
128-
print("-" * 10, "Building SUNDIALS", "-" * 40)
129124
make_cmd = ["make", f"-j{cpu_count()}", "install"]
130125
subprocess.run(make_cmd, cwd=build_dir, check=True)
131126

@@ -147,6 +142,10 @@ def check_libraries_installed():
147142
sundials_files = [file + ".so" for file in sundials_files]
148143
elif platform.system() == "Darwin":
149144
sundials_files = [file + ".dylib" for file in sundials_files]
145+
else:
146+
raise NotImplementedError(
147+
f"Unsupported operating system: {platform.system()}. This script currently supports only Linux and macOS."
148+
)
150149
sundials_lib_found = True
151150
# Check for SUNDIALS libraries in each directory
152151
for lib_file in sundials_files:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build-backend = "setuptools.build_meta"
1313
[project]
1414
name = "pybammsolvers"
1515
description = "Python interface for the IDAKLU solver"
16-
requires-python = ">=3.9,<3.13"
16+
requires-python = ">=3.9,<3.14"
1717
license-files = ["LICENSE"]
1818
dynamic = ["version", "readme"]
1919
dependencies = [

0 commit comments

Comments
 (0)