forked from scivey/cystatsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (34 loc) · 1.03 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
from Cython.Build import cythonize
from distutils.core import setup, Extension
OPTIMIZED = '-O2'
UNOPTIMIZED = '-O0'
OPTIMIZATION = OPTIMIZED
STATS_EXT = cythonize(Extension("cystatsd.collector.collector", sources=[
"cystatsd/collector/collector.pyx",
"cystatsd/collector/statsd_proto.cpp"
],
language="c++",
include_dirs=["cystatsd/collector"],
extra_compile_args=[OPTIMIZATION, "--std=c++11"]
))
setup(
name='cystatsd',
version='1.1.0',
description="A c++/cython statsd encoder. It doesn't make any network calls; it just handles batch encoding.",
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3'
],
author='Scott Ivey',
author_email='[email protected]',
license='MIT',
package_data={
'cystatsd': ['*.pyx', '*.pxd', '*.hpp', '*.pxd', '*.py']
},
packages=[
'cystatsd', 'cystatsd.collector'
],
ext_modules=STATS_EXT,
provides=['cystatsd']
)