ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/pystatgrab/setup.py
Revision: 1.1
Committed: Mon Feb 9 23:07:25 2004 UTC (20 years, 10 months ago) by tdb
Content type: text/x-python
Branch: MAIN
Log Message:
Add error checking to the python bindings. They previously didn't check
for a NULL response from the libstatgrab functions - which resulted in
python core dumping. It now raises an exception instead.
Also add a first stab at a setup.py so people can quickly build/install
this extension if they want.

File Contents

# User Rev Content
1 tdb 1.1 #!/usr/bin/env python
2    
3     from distutils.core import setup, Extension
4    
5     setup( name = "statgrab",
6     version = "0.8.1",
7     description = "Python bindings for libstatgrab",
8     author = "i-scream",
9     author_email = "dev@i-scream.org",
10     url = "http://www.i-scream.org/libstatgrab",
11     license = "GNU GPL v2 or later",
12     ext_modules=[Extension(
13     "statgrab",
14     ["statgrab.c"],
15     libraries = ["statgrab", "kvm", "devstat"],
16     include_dirs = ["/usr/local/include"],
17     library_dirs = ["/usr/local/lib"],
18     )],
19     )