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

Last change on this file since 4346 was 1584, checked in by gah, 14 years ago

remove use of python.env file

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