File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 31
31
activate-environment : suitesparse-graphblas
32
32
- name : Build
33
33
run : |
34
- conda info
35
- conda config --show-sources
36
- conda config --show
37
- conda list
38
- conda env list
39
34
python setup.py build_ext --inplace
40
35
python setup.py develop
41
36
- name : Test
47
42
run : |
48
43
black *py suitesparse_graphblas --check --diff
49
44
flake8 *py suitesparse_graphblas
45
+ - name : Create headers check
46
+ # These shouldn't change, so make copies to compare to
47
+ cp suitesparse_graphblas/suitesparse_graphblas.h .
48
+ cp suitesparse_graphblas/suitesparse_graphblas_no_complex.h .
49
+ cp suitesparse_graphblas/source.h .
50
+ python suitesparse_graphblas/create_headers.py
51
+ diff suitesparse_graphblas/suitesparse_graphblas.h suitesparse_graphblas.h
52
+ diff suitesparse_graphblas/suitesparse_graphblas_no_complex.h suitesparse_graphblas_no_complex.h
53
+ diff suitesparse_graphblas/source.h source.h
Original file line number Diff line number Diff line change 13
13
import sys
14
14
import versioneer
15
15
16
+ is_win = sys .platform .startswith ("win" )
16
17
define_macros = [("NPY_NO_DEPRECATED_API" , "NPY_1_7_API_VERSION" )]
17
18
18
19
if use_cython :
50
51
long_description = f .read ()
51
52
52
53
package_data = {"suitesparse_graphblas" : ["*.pyx" , "*.pxd" , "*.c" , "*.h" ]}
53
- if sys . platform == "win32" :
54
+ if is_win :
54
55
package_data ["suitesparse_graphblas" ].append ("*.dll" )
55
56
56
57
setup (
Original file line number Diff line number Diff line change 11
11
source = f .read ()
12
12
13
13
include_dirs = [os .path .join (sys .prefix , "include" )]
14
- if sys .platform == "win32" :
14
+ library_dirs = [os .path .join (sys .prefix , "lib" )]
15
+ if is_win :
15
16
include_dirs .append (os .path .join (sys .prefix , "Library" , "include" ))
17
+ library_dirs .append (os .path .join (sys .prefix , "Library" , "lib" ))
16
18
17
19
ffibuilder .set_source (
18
20
"suitesparse_graphblas._graphblas" ,
19
21
source ,
20
22
libraries = ["graphblas" ],
21
23
include_dirs = include_dirs ,
24
+ library_dirs = library_dirs ,
22
25
)
23
26
24
27
header = "suitesparse_graphblas.h"
You can’t perform that action at this time.
0 commit comments