source: trunk/src/python/setup.py @ 71

Last change on this file since 71 was 71, checked in by mmc, 17 years ago

Partial fixes to get Rappture.Units working in python.
The module loads now, but it dumps core.

File size: 1.0 KB
Line 
1from distutils.core import setup, Extension
2
3# need to write an if statement to check to see if the libRpUnits exists
4# if lib exists, then use the lib to compile against.
5# else compile everything from source.
6#
7#module = Extension('RpUnits',
8#                   include_dirs = [ '/usr/local/include',
9#                                    '../../include/cee',
10#                                    '../../include/core'],
11#                   libraries = ['RpUnits'],
12#                   library_dirs = ['../lib'],
13#                   sources = [  'PyRpUnits.cc' ])
14
15module = Extension('Rappture.Units',
16                   include_dirs = [ '../../include/cee',
17                                    '../../include/core'],
18                   sources = [  '../core/RpUnitsStd.cc',
19                                '../core/RpUnits.cc',
20                                'PyRpUnits.cc' ])
21
22setup(name="Rappture.Units",
23      version="0.1",
24      description="module for converting Rappture Units",
25      ext_modules=[module]
26      )
27
Note: See TracBrowser for help on using the repository browser.