-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·29 lines (27 loc) · 779 Bytes
/
setup.py
File metadata and controls
executable file
·29 lines (27 loc) · 779 Bytes
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
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
have_cython = False
if have_cython:
ext_modules = [Extension("cssdbpy.cssdbpy", ["cssdbpy/cssdbpy.pyx"]),
]
cmdclass = {'build_ext': build_ext}
else:
cmdclass = {}
ext_modules = [Extension("cssdbpy.cssdbpy", ["cssdbpy/cssdbpy.c"]),
]
setup(
name='cssdbpy',
version='0.1',
packages=['cssdbpy'],
ext_modules=ext_modules,
cmdclass=cmdclass,
author='deslum',
author_email='randomazer@gmail.com',
url='https://github.com/cssdbpy',
description='High performance SSDB client implemented with Cython'
)