-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (39 loc) · 1.34 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
import sys
import shutil
from setuptools.extension import Extension
from setuptools import setup, find_packages
try:
from Cython.Build import cythonize
except ImportError:
print('Cython not installed.')
print('Please, install Cython from http://www.cython.org')
sys.exit(1)
scriptdir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(scriptdir, 'README.md')) as f:
long_description = f.read()
ext = Extension('*',
['lmdbfw/*.pyx', 'mdb.c', 'midl.c'],
include_dirs=['.'])
setup(name='lmdbfw',
packages=find_packages(),
version='0.0.1',
license='BSD License',
author='Arthur Goncharuk',
author_email='[email protected]',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython'
'Programming Language :: C',
'Topic :: Software Development :: Libraries',
'Topic :: Database',
'Topic :: Database :: Database Engines/Servers'
],
ext_modules=cythonize(ext, build_dir='build'),
zip_safe=False
)