-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.py
57 lines (48 loc) · 1.72 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
from os.path import join, dirname
from setuptools import setup
from setuptools.extension import Extension
import platform
CURRENT_DIR = dirname(__file__)
with open(join(CURRENT_DIR, 'plyvel/_version.py')) as fp:
exec(fp.read(), globals(), locals())
def get_file_contents(filename):
with open(join(CURRENT_DIR, filename)) as fp:
return fp.read()
extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11']
if platform.system() == 'Darwin':
extra_compile_args += ['-stdlib=libc++']
ext_modules = [
Extension(
'plyvel._plyvel',
sources=['plyvel/_plyvel.cpp', 'plyvel/comparator.cpp'],
libraries=['leveldb'],
extra_compile_args=extra_compile_args,
)
]
setup(
name='plyvel',
description="Plyvel, a fast and feature-rich Python interface to LevelDB",
long_description=get_file_contents('README.rst'),
url="https://github.com/wbolster/plyvel",
version=__version__, # noqa: F821
author="Wouter Bolsterlee",
author_email="[email protected]",
ext_modules=ext_modules,
packages=['plyvel'],
license="BSD License",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: C++",
"Programming Language :: Cython",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
)