forked from leovp/pyreBloom-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (50 loc) · 1.75 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
import setuptools
ext_files = ['pyreBloom/bloom.c']
kwargs = {}
try:
from Cython.Distutils import build_ext
from Cython.Distutils import Extension
print('Building from Cython')
ext_files.append('pyreBloom/pyreBloom.pyx')
kwargs['cmdclass'] = {'build_ext': build_ext}
except ImportError:
from distutils.core import Extension
ext_files.append('pyreBloom/pyreBloom.c')
print('Building from C')
ext_modules = [Extension("pyreBloom", ext_files, libraries=['hiredis'],
library_dirs=['/usr/local/lib'],
include_dirs=['/usr/local/include'],
extra_compile_args=['-std=c99'])]
setuptools.setup(
name='pyreBloom-ng',
version='0.0.1',
url='https://github.com/leovp/pyreBloom-ng',
license='MIT',
author='Leonid Runyshkin',
author_email='[email protected]',
keywords='bloom filter redis',
description='Python library which implements a Redis-backed Bloom filter.',
# long_description=read('README.rst'),
platforms=['any'],
ext_modules=ext_modules,
install_requires=[
'Cython==0.24',
],
tests_require=[
'redis==2.10.5'
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Programming Language :: C',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
],
)