forked from piskvorky/bounter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (54 loc) · 2.14 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Filip Stefanak <f.stefanak@rare-technologies.com>
# Copyright (C) 2017 Rare Technologies
#
# This code is distributed under the terms and conditions
# from the MIT License (MIT).
import sys, os, io
if sys.version_info < (2, 7):
raise ImportError("bounter requires python >= 2.7")
# TODO add ez_setup?
from setuptools import setup, find_packages, Extension
def read(fname):
name = os.path.join(os.path.dirname(__file__), fname)
if not os.path.isfile(name):
return ''
with io.open(name, encoding='utf-8') as readfile:
return readfile.read()
setup(
name='bounter',
version='1.1.0',
description='Counter for large datasets',
long_description=read('README.rst'),
headers=['cbounter/hll.h', 'cbounter/murmur3.h'],
ext_modules=[
Extension('bounter_cmsc', ['cbounter/cms_cmodule.c', 'cbounter/murmur3.c', 'cbounter/hll.c']),
Extension('bounter_htc', ['cbounter/ht_cmodule.c', 'cbounter/murmur3.c', 'cbounter/hll.c'])
],
packages=find_packages(),
author=u'Filip Stefanak',
author_email='f.stefanak@rare-technologies.com',
maintainer=u'RARE Technologies',
maintainer_email='opensource@rare-technologies.com',
url='https://github.com/RaRe-Technologies/bounter',
download_url='http://pypi.python.org/pypi/bounter',
keywords='counter, count-min sketch, bounded memory, hyperloglog, approximative counting, cardinality estimation',
license='MIT',
platforms='any',
test_suite="bounter.tests",
classifiers=[ # from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
)