|
18 | 18 | headers = common + linsolve + cvodes |
19 | 19 | include = [] |
20 | 20 | library_dirs = [] |
| 21 | +extra_libs = [] |
21 | 22 |
|
22 | 23 | if sys.platform == 'win32': |
23 | 24 | with open(os.path.join(base, "source_cvodes_win.c")) as fsource: |
24 | 25 | source_content = fsource.read() |
25 | | - include.append(os.path.join(os.environ["CONDA_PREFIX"], "Library", "include")) |
26 | | - library_dirs.append(os.path.join(os.environ["CONDA_PREFIX"], "Library", "lib")) |
| 26 | + include += [os.path.join(os.environ["CONDA_PREFIX"], "Library", "include")] |
| 27 | + library_dirs += [os.path.join(os.environ["CONDA_PREFIX"], "Library", "lib")] |
27 | 28 |
|
28 | | - extra_libs = [] |
29 | 29 | # lapackdense is not supported by the windows build of sundials |
30 | 30 | for name in ['sunlinsol_lapackdense', 'sunlinsol_klu']: |
31 | 31 | headers = [fn for fn in headers if name not in fn] |
|
35 | 35 |
|
36 | 36 | #test if we can use conda libraries |
37 | 37 | if "CONDA_PREFIX" in os.environ: |
38 | | - include.append(os.path.join(os.environ["CONDA_PREFIX"], "include")) |
39 | | - library_dirs.append(os.path.join(os.environ["CONDA_PREFIX"], "lib")) |
| 38 | + include += [os.path.join(os.environ["CONDA_PREFIX"], "include")] |
| 39 | + library_dirs += [os.path.join(os.environ["CONDA_PREFIX"], "lib")] |
| 40 | + extra_libs += ["blas", "lapack"] |
40 | 41 | else: |
41 | | - include.append("/usr/include/suitesparse/") |
| 42 | + include += ["/usr/include/suitesparse/"] |
| 43 | + extra_libs.append("openblas") |
42 | 44 |
|
43 | | - extra_libs = [ |
44 | | - "openblas", |
| 45 | + extra_libs += [ |
45 | 46 | "pthread", |
46 | 47 | "klu", |
47 | 48 | "sundials_sunlinsollapackdense", |
|
0 commit comments