| 1 |
|
#!/usr/bin/env python |
| 2 |
|
# |
| 3 |
< |
# i-scream central monitoring system |
| 4 |
< |
# http://www.i-scream.org |
| 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 |
| 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.12" |
| 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", |