-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
28 lines (25 loc) · 1.08 KB
/
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
#!/usr/bin/python
from distutils.core import setup, Extension
import sys
setup(name='python-nagdata',
version='0.1',
description='Python interface to Nagios object and status files',
long_description='Python interface to Nagios object and status files. Parses '+\
'configuration files, status.dat (status file) and represents information '+\
'as collection of objects with corresponding obj_type and attributes. '+\
'Objects may be changed and saved.',
license='LGPL3',
author='Alexander Duryagin',
author_email='daa@vologda.ru',
url='http://github.com/daa/nagdata',
packages=['nagdata'],
ext_modules= [
Extension('nagdata/cparser_fmt', ['nagdata/cparser.c'],
define_macros=[
('WITH_FORMAT', None),
('initfunc_name', 'initcparser_fmt'),
('cparser_name', '"cparser_fmt"')]),
Extension('nagdata/cparser_fast', ['nagdata/cparser2.c'],
define_macros=[
('initfunc_name', 'initcparser_fast'),
('cparser_name', '"cparser_fast"')]) ])