File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 44
55if sys .platform == 'darwin' :
66 libsrc = 'Darwin'
7+ compiler = 'clang'
78elif sys .platform .startswith ('linux' ):
89 libsrc = 'Linux'
10+ compiler = 'gcc'
911else :
1012 libsrc = None
1113
1214epics_inc = os .getenv ("EPICS_BASE" ) + "/include"
1315epics_lib = os .getenv ("EPICS_BASE" ) + "/lib/" + os .getenv ("EPICS_HOST_ARCH" )
1416numpy_inc = np .get_include ()
17+ numpy_lib = np .__path__ [0 ]
1518
1619pyca = Extension ('pyca' ,
1720 language = 'c++' ,
1821 sources = ['pyca/pyca.cc' ],
19- include_dirs = ['pyca' , epics_inc , epics_inc + '/os/' + libsrc ,
20- numpy_inc ],
21- library_dirs = [epics_lib ],
22+ include_dirs = ['pyca' , epics_inc ,
23+ epics_inc + '/os/' + libsrc ,
24+ epics_inc + '/os/compiler/' + compiler ,
25+ numpy_inc ],
26+ library_dirs = [epics_lib ,numpy_lib ],
27+ runtime_library_dirs = [epics_lib ,numpy_lib ],
2228 libraries = ['Com' , 'ca' ])
2329
2430setup (name = 'pyca' ,
You can’t perform that action at this time.
0 commit comments