ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/extras/python/setup.py
Revision: 1.7
Committed: Sat Mar 20 19:25:19 2004 UTC (20 years, 9 months ago) by tdb
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +0 -0 lines
State: FILE REMOVED
Log Message:
The libstatgrab python bindings are now their own package - pystatgrab.

File Contents

# User Rev Content
1 tdb 1.1 #!/usr/bin/env python
2    
3     from distutils.core import setup, Extension
4 tdb 1.2 from commands import getstatusoutput
5     from sys import exit
6    
7     cflags = getstatusoutput("pkg-config --cflags libstatgrab")
8     libs = getstatusoutput("pkg-config --libs libstatgrab")
9    
10     if cflags[0] != 0:
11     exit("Failed to get cflags: " + cflags[1])
12    
13     if libs[0] != 0:
14     exit("Failed to get libs: " + libs[1])
15 tdb 1.1
16     setup( name = "statgrab",
17 tdb 1.6 version = "0.9.1",
18 tdb 1.1 description = "Python bindings for libstatgrab",
19     author = "i-scream",
20     author_email = "dev@i-scream.org",
21     url = "http://www.i-scream.org/libstatgrab",
22     license = "GNU GPL v2 or later",
23     ext_modules=[Extension(
24     "statgrab",
25     ["statgrab.c"],
26 tdb 1.2 extra_compile_args = cflags[1].split(),
27     extra_link_args = libs[1].split(),
28 tdb 1.1 )],
29     )