Skip to content

Commit

Permalink
ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopendlebury committed Jan 30, 2024
1 parent 3bdfd3e commit 80a4ea5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_eccodes_include_path() -> Path:

def get_lib_path(func: Callable, as_string: bool = False) -> Union[str, Path]:
temp = func() / "lib"
temp = temp if temp.exists else func() / "lib64"
temp = temp if temp.exists() else func() / "lib64"
return str(temp) if as_string else temp

def get_eccodes_lib_path(as_string: bool = False) -> Union[str, Path]:
Expand Down Expand Up @@ -151,7 +151,8 @@ def buildEccodes():
all_args.extend([str(eccodes_path)])
runCmd(cmake_path, get_eccodes_build_dir(), all_args)
runCmd("make", get_eccodes_build_dir())
runCmd("ctest", get_eccodes_build_dir())
ctest_path = "/".join(cmake_path.split("/")[:-1])
runCmd(f"{ctest_path}/ctest", get_eccodes_build_dir())
runCmd("make", get_eccodes_build_dir(), ["install"])

def mk_wheel_dirs(paths):
Expand Down

0 comments on commit 80a4ea5

Please sign in to comment.