1 |
|
#!/usr/bin/env python |
2 |
|
# |
3 |
< |
# setup.py - distfiles configuration for pystatgrab |
3 |
> |
# i-scream pystatgrab |
4 |
> |
# http://www.i-scream.org/pystatgrab/ |
5 |
> |
# Copyright (C) 2000-2004 i-scream |
6 |
|
# |
7 |
+ |
# This program is free software; you can redistribute it and/or |
8 |
+ |
# modify it under the terms of the GNU General Public License |
9 |
+ |
# as published by the Free Software Foundation; either version 2 |
10 |
+ |
# of the License, or (at your option) any later version. |
11 |
+ |
# |
12 |
+ |
# This program is distributed in the hope that it will be useful, |
13 |
+ |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
+ |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
+ |
# GNU General Public License for more details. |
16 |
+ |
# |
17 |
+ |
# You should have received a copy of the GNU General Public License |
18 |
+ |
# along with this program; if not, write to the Free Software |
19 |
+ |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 |
+ |
# |
21 |
|
# $Id$ |
22 |
|
# |
23 |
|
"""Python bindings for libstatgrab.""" |
29 |
|
import os |
30 |
|
|
31 |
|
# version of pystatgrab |
32 |
< |
VERSION = "0.1" |
32 |
> |
VERSION = "0.5" |
33 |
|
|
34 |
|
# required version of libstatgrab |
35 |
< |
LIBSTATGRAB = "0.9" |
35 |
> |
LIBSTATGRAB = "0.13" |
36 |
|
|
37 |
|
# test for pkg-config presence |
38 |
|
if os.system("pkg-config --version >/dev/null 2>&1"): |
63 |
|
sys.exit("Failed to get cflags: " + cflags[1]) |
64 |
|
|
65 |
|
if libs[0] != 0: |
66 |
< |
exit("Failed to get libs: " + libs[1]) |
66 |
> |
sys.exit("Failed to get libs: " + libs[1]) |
67 |
|
|
68 |
|
# setup information |
69 |
|
setup( name = "pystatgrab", |
70 |
|
version = VERSION, |
71 |
|
description = "Python bindings for libstatgrab", |
72 |
|
author = "i-scream", |
73 |
< |
author_email = "dev@i-scream.org", |
74 |
< |
url = "http://www.i-scream.org/libstatgrab/", |
73 |
> |
author_email = "support@i-scream.org", |
74 |
> |
url = "http://www.i-scream.org/pystatgrab/", |
75 |
|
license = "GNU GPL v2 or later", |
76 |
|
ext_modules=[Extension( |
77 |
|
"_statgrab", |