]>
Commit | Line | Data |
---|---|---|
ea7bad6d CJ |
1 | try: |
2 | from setuptools import setup | |
3 | from setuptools.extension import Extension | |
4 | except ImportError: | |
5 | from distutils.core import setup, Extension | |
ce6564c2 | 6 | |
b4570f2a | 7 | def main(): |
225c0910 CJ |
8 | module = Extension('rrdtool', |
9 | sources=['rrdtoolmodule.c'], | |
10 | include_dirs = ['/opt/local/include'], | |
b4570f2a | 11 | libraries=['rrd']) |
ce6564c2 | 12 | |
b4570f2a CJ |
13 | kwargs = dict( |
14 | name='python-rrdtool', | |
ea7bad6d | 15 | version='0.1.2', |
225c0910 | 16 | description='rrdtool bindings for Python', |
b4570f2a CJ |
17 | keywords=['rrdtool'], |
18 | author='Christian Jurk, Hye-Shik Chang', | |
19 | author_email='commx@commx.ws', | |
ea7bad6d CJ |
20 | license='GPL', |
21 | url='https://github.com/commx/python-rrdtool', | |
b4570f2a | 22 | ext_modules=[module], |
b4570f2a | 23 | ) |
ce6564c2 | 24 | |
b4570f2a CJ |
25 | setup(**kwargs) |
26 | ||
27 | if __name__ == '__main__': | |
28 | main() |