Get rid of this 'extension_defaults' variable.
This commit is contained in:
parent
8fba5ffa1d
commit
61e8ae7668
1 changed files with 8 additions and 11 deletions
19
setup.py
19
setup.py
|
@ -1,9 +1,12 @@
|
|||
from setuptools import setup, find_packages
|
||||
from setuptools import setup
|
||||
from setuptools import find_packages
|
||||
from distutils.extension import Extension
|
||||
from Cython.Build import cythonize
|
||||
|
||||
extension_defaults = {
|
||||
'extra_compile_args': [
|
||||
mod1 = Extension(
|
||||
'rocksdb._rocksdb',
|
||||
['rocksdb/_rocksdb.pyx'],
|
||||
extra_compile_args=[
|
||||
'-std=c++11',
|
||||
'-O3',
|
||||
'-Wall',
|
||||
|
@ -11,19 +14,13 @@ extension_defaults = {
|
|||
'-Wconversion',
|
||||
'-fno-strict-aliasing'
|
||||
],
|
||||
'language': 'c++',
|
||||
'libraries': [
|
||||
language='c++',
|
||||
libraries=[
|
||||
'rocksdb',
|
||||
'snappy',
|
||||
'bz2',
|
||||
'z'
|
||||
]
|
||||
}
|
||||
|
||||
mod1 = Extension(
|
||||
'rocksdb._rocksdb',
|
||||
['rocksdb/_rocksdb.pyx'],
|
||||
**extension_defaults
|
||||
)
|
||||
|
||||
setup(
|
||||
|
|
Loading…
Reference in a new issue