Skip to content

Commit 128ae68

Browse files
committed
Include "Library/include" in include path on Windows
1 parent 0de6041 commit 128ae68

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
18-
python-version: [3.7, 3.8, 3.9]
17+
os: ["windows-latest"]
18+
python-version: [3.9]
19+
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
20+
# python-version: [3.7, 3.8, 3.9]
1921
steps:
2022
- name: Checkout
2123
uses: actions/checkout@v2

suitesparse_graphblas/build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010
with open(os.path.join(thisdir, "source.c")) as f:
1111
source = f.read()
1212

13+
include_dirs = [os.path.join(sys.prefix, "include")]
14+
if sys.platform == "win32":
15+
include_dirs.append(os.path.join(sys.prefix, "Library", "include"))
16+
1317
ffibuilder.set_source(
1418
"suitesparse_graphblas._graphblas",
1519
source,
1620
libraries=["graphblas"],
17-
include_dirs=[os.path.join(sys.prefix, "include")],
21+
include_dirs=include_dirs,
1822
)
1923

2024
header = "suitesparse_graphblas.h"

0 commit comments

Comments
 (0)