diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d46ec69..f57b785 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -17,7 +17,7 @@ on: - Test PyPI push: - branches: [ main ] +# branches: [ main ] pull_request: diff --git a/build_graphblas_cffi.py b/build_graphblas_cffi.py index be357b7..c87f077 100644 --- a/build_graphblas_cffi.py +++ b/build_graphblas_cffi.py @@ -48,23 +48,19 @@ def tree(dir_path: Path, prefix: str=''): # Windows wheels.yml configures suitesparse.sh to install GraphBLAS to "C:\\GraphBLAS". graphblas_root = "C:\\GraphBLAS" if is_win else sys.prefix - #### TEST - if not is_win: - graphblas_root = "/usr/local" - include_dirs = [os.path.join(graphblas_root, "include")] #### TEST -for line in tree(Path(include_dirs[0])): +for line in tree(Path(graphblas_root)): print(line) #### TEST include_dirs.append(os.path.join(graphblas_root, "include", "suitesparse")) -library_dirs = [os.path.join(graphblas_root, "lib")] +library_dirs = [os.path.join(graphblas_root, "lib"), os.path.join(graphblas_root, "lib64")] if is_win: include_dirs.append(os.path.join(sys.prefix, "Library", "include")) - include_dirs.append(os.path.join(sys.prefix, "Library", "include", "suitesparse")) + # include_dirs.append(os.path.join(sys.prefix, "Library", "include", "suitesparse")) library_dirs.append(os.path.join(sys.prefix, "Library", "lib")) - include_dirs.append(os.path.join(graphblas_root, "include")) + # include_dirs.append(os.path.join(graphblas_root, "include")) include_dirs.append(os.path.join(graphblas_root, "include", "suitesparse")) library_dirs.append(os.path.join(graphblas_root, "lib")) library_dirs.append(os.path.join(graphblas_root, "bin"))