Skip to content

Commit 58e615e

Browse files
committed
debugging windows
1 parent 43f2f71 commit 58e615e

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,7 @@ jobs:
5656
- name: Install dependencies (Windows)
5757
if: runner.os == 'Windows'
5858
shell: bash -el {0}
59-
run: |
60-
python3 -c 'import os; print( os.environ )'
61-
python3 -c 'import os; from pathlib import Path; [print(path) for path in Path(os.environ["CONDA_PREFIX"]).rglob("*")]'
62-
python3 -c 'import os; from pathlib import Path; [print(path) for path in Path(os.environ["CONDA_PREFIX"]).parent.parent.rglob("*")]'
63-
python -m pip install .[test]
64-
59+
run: python -m pip install .[test]
6560

6661
- name: Test with pytest (non-Windows)
6762
if: runner.os != 'Windows'

sparseqr/sparseqr_gen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
if 'CONDA_PREFIX' in os.environ:
1818
include_dirs.append( os.path.join(os.environ['CONDA_PREFIX'], 'include', 'suitesparse') )
1919
library_dirs.append( os.path.join(os.environ['CONDA_PREFIX'], 'lib') )
20+
## For Windows:
21+
include_dirs.append( os.path.join(os.environ['CONDA_PREFIX'], 'Library', 'include', 'suitesparse') )
22+
library_dirs.append( os.path.join(os.environ['CONDA_PREFIX'], 'Library', 'lib') )
2023

2124
## Otherwise, add common system-wide directories
2225
else:

0 commit comments

Comments
 (0)