forked from commx/python-rrdtool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
28 lines (24 loc) · 775 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
try:
from setuptools import setup
from setuptools.extension import Extension
except ImportError:
from distutils.core import setup, Extension
def main():
module = Extension('rrdtool',
sources=['rrdtoolmodule.c'],
include_dirs = ['/opt/local/include'],
libraries=['rrd'])
kwargs = dict(
name='python-rrdtool',
version='0.1.2',
description='rrdtool bindings for Python',
keywords=['rrdtool'],
author='Christian Jurk, Hye-Shik Chang',
author_email='[email protected]',
license='GPL',
url='https://github.com/commx/python-rrdtool',
ext_modules=[module],
)
setup(**kwargs)
if __name__ == '__main__':
main()