-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
44 lines (39 loc) · 1.39 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
import os
from setuptools import setup, find_packages
from setuptools.extension import Extension
import hisser
ext_map = {
'hisser.pack': ['hisser/pack.c'],
'hisser.aggop': ['hisser/aggop.c'],
'hisser.jsonpoints': ['hisser/jsonpoints.cpp']
}
if os.environ.get('HISSER_BUILD_EXT'):
ext_map = {k: v for k, v in ext_map.items() if os.environ['HISSER_BUILD_EXT'] in v}
extensions = [Extension(k, v) for k, v in ext_map.items()]
setup(
name='hisser',
version=hisser.version,
url='https://github.com/baverman/hisser',
author='Anton Bobrov',
author_email='[email protected]',
license='MIT',
description='Fast TSDB backend for graphite',
long_description=open('README.rst').read(),
packages=find_packages(exclude=['tests']),
install_requires=['msgpack', 'click', 'lmdb', 'xxhash', 'covador', 'nanoio', 'numpy'],
ext_modules=extensions,
setup_requires=["cffi==1.15.1"],
cffi_modules=["hisser/lmdb_scan_build.py:ffibuilder"],
entry_points={
'console_scripts': ['hisser = hisser.__main__:cli']
},
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
)