forked from schmichael/mmstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (44 loc) · 1.48 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
44
45
46
47
48
49
50
51
import sys
from setuptools import setup
from setuptools.extension import Extension
#XXX gettid only works on Linux, don't bother else
if 'linux' in sys.platform:
exts = [Extension('mmstats._libgettid', sources=['mmstats/_libgettid.c'])]
else:
exts = []
requirements = ['Flask']
try:
import argparse
except ImportError:
# We're probably on Python <2.7, add argparse as a requirement
requirements.append('argparse')
import mmstats
setup(
name='mmstats',
url='https://github.com/schmichael/mmstats',
version=mmstats.__version__,
license='APLv2',
author='Michael Schurter',
author_email='[email protected]',
description='Stat, metric, and diagnostic publishing and consuming tools',
long_description=open('README.rst').read() + '\n\n' +
open('CHANGES.rst').read() + '\n\n' +
open('TODO.rst').read(),
packages=['mmstats'],
include_package_data=True,
entry_points={
'console_scripts': [
'mmash=mmstats.mmash:main',
'slurpstats=mmstats.slurpstats:main',
'pollstats=mmstats.pollstats:main',
'cleanstats=mmstats.clean:cli',
],
},
ext_modules=exts,
test_suite='tests',
install_requires=requirements,
classifiers=['License :: OSI Approved :: Apache Software License'],
# It might actually be zip-safe, I just hate eggs. File an issue or pull
# request if mmstats is actually zip_safe and you care
zip_safe=False
)