lbry-rocksdb/setup.py

48 lines
1 KiB
Python
Raw Normal View History

2014-01-13 19:52:22 +01:00
from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Build import cythonize
extension_defaults = {
'extra_compile_args': [
'-std=gnu++11',
'-O3',
'-Wall',
'-Wextra',
'-Wconversion',
'-fno-strict-aliasing'
],
'language': 'c++',
'libraries': [
2014-01-26 13:32:23 +01:00
'rocksdb',
'snappy',
2014-01-13 19:52:22 +01:00
'bz2',
2014-01-26 13:32:23 +01:00
'z'
2014-01-13 19:52:22 +01:00
]
}
mod1 = Extension(
'rocksdb._rocksdb',
['rocksdb/_rocksdb.pyx'],
**extension_defaults
)
setup(
name="pyrocksdb",
2014-02-02 17:40:55 +01:00
version='0.1',
description="Python bindings for RocksDB",
keywords='rocksdb',
author='Stephan Hofmockel',
author_email="Use the github issues",
url="https://github.com/stephan-hof/pyrocksdb",
license='BSD License',
2014-01-13 19:52:22 +01:00
install_requires=[
'setuptools',
'Cython>=0.20',
2014-01-13 19:52:22 +01:00
],
package_dir={'rocksdb': 'rocksdb'},
packages=find_packages('.'),
ext_modules=cythonize([mod1]),
test_suite='rocksdb.tests',
include_package_data=True
)