source: trunk/lang/python/setup.py.in @ 4503

Last change on this file since 4503 was 1584, checked in by gah, 15 years ago

remove use of python.env file

File size: 1.9 KB
Line 
1from distutils.core import setup, Extension
2
3rp_install_dir = '@prefix@'
4tmpdir = 'build/tmp/'
5srcdir = '@srcdir@/Rappture/'
6incdir = '@srcdir@/../../src/core'
7libdir = '@srcdir@/../../src/core'
8
9library_module = Extension('Rappture.library',
10                           include_dirs = [incdir, '../include'],
11                           sources = [ tmpdir+'PyRpLibrary.cc' ],
12                           library_dirs = [ libdir, '../src' ],
13                           libraries = [ 'rappture' ] )
14
15units_module = Extension('Rappture.Units',
16                         include_dirs = [incdir, '../include'],
17                         sources = [ tmpdir+'PyRpUnits.cc' ],
18                         library_dirs = [ libdir, '../src' ],
19                         libraries = [ 'rappture' ] )
20
21utils_module = Extension('Rappture.Utils',
22                         include_dirs = [ incdir, '../include'],
23                         sources = [ tmpdir+'PyRpUtils.cc' ],
24                         library_dirs = [ libdir, '../src' ],
25                         libraries = [ 'rappture' ] )
26
27encode_module = Extension('Rappture.encoding',
28                          include_dirs = [ incdir, '../include'],
29                          sources = [ tmpdir+'PyRpEncode.cc' ],
30                          library_dirs = [ libdir, '../src' ],
31                          libraries = [ 'rappture' ] )
32
33setup(  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        ext_modules=[ encode_module,
45                      library_module,
46                      units_module,
47                      utils_module ]
48  )
Note: See TracBrowser for help on using the repository browser.