Last change
on this file since 70 was
70,
checked in by dkearney, 19 years ago
|
adding python RpUnits as a module under Rappture so it can be called as Rappture.Units
|
File size:
1.0 KB
|
Line | |
---|
1 | from 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 | |
---|
15 | module = Extension('Rappture.Units', |
---|
16 | include_dirs = [ '../../include/cee', |
---|
17 | '../../include/core'], |
---|
18 | sources = [ '../core/RpUnitsStd.cc', |
---|
19 | '../core/RpUnits.cc', |
---|
20 | 'PyRpUnits.cc' ]) |
---|
21 | |
---|
22 | setup(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.