Skip to content

Commit

Permalink
Support both suitesparse.sh and conda install paths
Browse files Browse the repository at this point in the history
  • Loading branch information
alugowski committed Jun 3, 2024
1 parent 9b27a84 commit bb3ec65
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build_graphblas_cffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@

if not graphblas_root:
# Windows wheels.yml configures suitesparse.sh to install GraphBLAS to "C:\\GraphBLAS".
graphblas_root = "C:\\GraphBLAS" if is_win else "/usr/local"
if is_win:
graphblas_root = "C:\\GraphBLAS"
elif Path("/usr/local/include/suitesparse").exists():
# SuiteSparse:GraphBLAS 9.1+ built by suitesparse.sh
graphblas_root = "/usr/local"
else:
# Conda install
graphblas_root = sys.prefix

include_dirs = [
os.path.join(graphblas_root, "include"),
Expand Down

0 comments on commit bb3ec65

Please sign in to comment.