Skip to content

Commit 66e11b3

Browse files
committed
parent
1 parent a9b4c37 commit 66e11b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build_graphblas_cffi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ def tree(dir_path: Path, prefix: str=''):
4444
if not graphblas_root:
4545
graphblas_root = os.environ.get("GRAPHBLAS_PREFIX", None)
4646

47+
if "{package}" in graphblas_root:
48+
graphblas_root = graphblas_root.replace("{package}", str(Path(__file__).parent))
49+
50+
if not graphblas_root:
51+
graphblas_root = Path(__file__).parent
52+
4753
if not graphblas_root:
4854
# Windows wheels.yml configures suitesparse.sh to install GraphBLAS to "C:\\GraphBLAS".
4955
graphblas_root = "C:\\GraphBLAS" if is_win else sys.prefix

0 commit comments

Comments
 (0)