Skip to content

Commit 4dd6dda

Browse files
authored
Merge pull request #8 from bhill-slac/add-rpath-support
Updated include_dirs to work for EPICS BASE >= 3.15 and added rpaths
2 parents 54602a7 + 321e2a3 commit 4dd6dda

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@
44

55
if sys.platform == 'darwin':
66
libsrc = 'Darwin'
7+
compiler = 'clang'
78
elif sys.platform.startswith('linux'):
89
libsrc = 'Linux'
10+
compiler = 'gcc'
911
else:
1012
libsrc = None
1113

1214
epics_inc = os.getenv("EPICS_BASE") + "/include"
1315
epics_lib = os.getenv("EPICS_BASE") + "/lib/" + os.getenv("EPICS_HOST_ARCH")
1416
numpy_inc = np.get_include()
17+
numpy_lib = np.__path__[0]
1518

1619
pyca = 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

2430
setup(name='pyca',

0 commit comments

Comments
 (0)