Skip to content

Commit bb3ec65

Browse files
committed
Support both suitesparse.sh and conda install paths
1 parent 9b27a84 commit bb3ec65

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build_graphblas_cffi.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717

1818
if not graphblas_root:
1919
# Windows wheels.yml configures suitesparse.sh to install GraphBLAS to "C:\\GraphBLAS".
20-
graphblas_root = "C:\\GraphBLAS" if is_win else "/usr/local"
20+
if is_win:
21+
graphblas_root = "C:\\GraphBLAS"
22+
elif Path("/usr/local/include/suitesparse").exists():
23+
# SuiteSparse:GraphBLAS 9.1+ built by suitesparse.sh
24+
graphblas_root = "/usr/local"
25+
else:
26+
# Conda install
27+
graphblas_root = sys.prefix
2128

2229
include_dirs = [
2330
os.path.join(graphblas_root, "include"),

0 commit comments

Comments
 (0)