Skip to content

Commit

Permalink
Add lib64
Browse files Browse the repository at this point in the history
  • Loading branch information
alugowski committed Jun 2, 2024
1 parent a96d9ae commit 2580a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- Test PyPI

push:
branches: [ main ]
# branches: [ main ]

pull_request:

Expand Down
12 changes: 4 additions & 8 deletions build_graphblas_cffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 2580a67

Please sign in to comment.