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