forked from philberty/vigilant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·43 lines (40 loc) · 1.55 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import sys
import pkgconfig
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from pip.req import parse_requirements
if pkgconfig.exists ('watchy') is False:
print >> sys.stderr, "Make sure pkg-config watchy --cflags --libs works."
sys.exit (1)
watchy = pkgconfig.parse ('watchy')
extensions = [
Extension ('pywatchy', ['bindings/python/pywatchy.pyx'],
include_dirs = list (watchy ['include_dirs']),
libraries = list (watchy ['libraries']),
library_dirs = list (watchy ['library_dirs']),
runtime_library_dirs = list (watchy ['library_dirs']))
]
install_reqs = parse_requirements ('./requirements.txt')
reqs = [str(ir.req) for ir in install_reqs]
setup (
name = "Watchy",
version = "0.1",
url = 'https://github.com/redbrain/watchy',
author = 'Philip Herron',
author_email = '[email protected]',
license = "MIT",
description = 'A stats agregation daemon over UDP',
platforms = ('Any',),
#FIXME: requires = reqs,
keywords = ('stats', 'web', 'monitoring', 'udp'),
ext_modules = cythonize (extensions),
packages = ['WatchyServer'],
scripts = ['watchy.py'],
package_dir = {'WatchyServer': 'WatchyServer'},
package_data = {'WatchyServer': ['templates/*',
'static/css/*',
'static/js/*']},
data_files=[('/etc/watchy/', ['etc/watchy/example-watchy.cfg',
'etc/watchy/watchy.cfg.tmpl'])],
)