File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 17
17
18
18
headers = common + linsolve + cvodes
19
19
20
- for fname in headers :
21
- with open (fname , "r" ) as fheader :
22
- content = fheader .read ()
23
- print (fname )
24
- ffibuilder .cdef (content )
25
-
26
20
if sys .platform == 'win32' :
27
21
with open (os .path .join (base , "source_cvodes_win.c" )) as fsource :
28
- content = fsource .read ()
22
+ source_content = fsource .read ()
29
23
include = [os .path .join (os .environ ["CONDA_PREFIX" ], "Library" , "include" )]
30
24
library_dirs = [
31
25
os .path .join (os .environ ["CONDA_PREFIX" ], "Library" , "lib" )
36
30
headers = [fn for fn in headers if name not in fn ]
37
31
else :
38
32
with open (os .path .join (base , "source_cvodes.c" )) as fsource :
39
- content = fsource .read ()
33
+ source_content = fsource .read ()
40
34
include = [os .path .join (os .environ ["CONDA_PREFIX" ], "include" )]
41
35
library_dirs = [os .path .join (os .environ ["CONDA_PREFIX" ], "lib" )]
42
36
extra_libs = [
49
43
"sundials_sunlinsolklu" ,
50
44
]
51
45
46
+ for fname in headers :
47
+ with open (fname , "r" ) as fheader :
48
+ content = fheader .read ()
49
+ print (fname )
50
+ ffibuilder .cdef (content )
51
+
52
+
52
53
ffibuilder .set_source (
53
54
"_sundials_cvodes" ,
54
- content ,
55
+ source_content ,
55
56
libraries = [
56
57
"sundials_nvecserial" ,
57
58
"sundials_sunmatrixdense" ,
You can’t perform that action at this time.
0 commit comments