1 | from distutils.core import setup, Extension |
---|
2 | |
---|
3 | rp_install_dir = '@prefix@' |
---|
4 | |
---|
5 | library_module = Extension('Rappture.library', |
---|
6 | include_dirs = [rp_install_dir+'/include', '../include'], |
---|
7 | sources = [ 'Rappture/PyRpLibrary.cc' ], |
---|
8 | library_dirs = [ rp_install_dir+'/lib', '../src' ], |
---|
9 | libraries = [ 'rappture' ] ) |
---|
10 | |
---|
11 | units_module = Extension('Rappture.Units', |
---|
12 | include_dirs = [rp_install_dir+'/include', '../include'], |
---|
13 | sources = [ 'Rappture/PyRpUnits.cc' ], |
---|
14 | library_dirs = [ rp_install_dir+'/lib', '../src' ], |
---|
15 | libraries = [ 'rappture' ] ) |
---|
16 | |
---|
17 | utils_module = Extension('Rappture.Utils', |
---|
18 | include_dirs = [rp_install_dir+'/include', '../include'], |
---|
19 | sources = [ 'Rappture/PyRpUtils.cc' ], |
---|
20 | library_dirs = [ rp_install_dir+'/lib', '../src' ], |
---|
21 | libraries = [ 'rappture' ] ) |
---|
22 | |
---|
23 | encode_module = Extension('Rappture.encoding', |
---|
24 | include_dirs = [rp_install_dir+'/include', '../include'], |
---|
25 | sources = [ 'Rappture/PyRpEncode.cc' ], |
---|
26 | library_dirs = [ rp_install_dir+'/lib', '../src' ], |
---|
27 | libraries = [ 'rappture' ] ) |
---|
28 | |
---|
29 | setup( name='Rappture', |
---|
30 | version='0.1', |
---|
31 | description='Rapid Application Infrastructure library for nanoHUB.org', |
---|
32 | url='http://www.nanohub.org/', |
---|
33 | py_modules=[ 'Rappture.interface', |
---|
34 | 'Rappture.number', |
---|
35 | 'Rappture.queue', |
---|
36 | 'Rappture.signalHandler', |
---|
37 | 'Rappture.tools', |
---|
38 | 'Rappture.result'], |
---|
39 | ext_modules=[ encode_module, |
---|
40 | library_module, |
---|
41 | units_module, |
---|
42 | utils_module ] |
---|
43 | ) |
---|