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 distutils.extension import Extension
|
||||||
from Cython.Build import cythonize
|
from Cython.Build import cythonize
|
||||||
|
|
||||||
extension_defaults = {
|
mod1 = Extension(
|
||||||
'extra_compile_args': [
|
'rocksdb._rocksdb',
|
||||||
|
['rocksdb/_rocksdb.pyx'],
|
||||||
|
extra_compile_args=[
|
||||||
'-std=c++11',
|
'-std=c++11',
|
||||||
'-O3',
|
'-O3',
|
||||||
'-Wall',
|
'-Wall',
|
||||||
|
@ -11,19 +14,13 @@ extension_defaults = {
|
||||||
'-Wconversion',
|
'-Wconversion',
|
||||||
'-fno-strict-aliasing'
|
'-fno-strict-aliasing'
|
||||||
],
|
],
|
||||||
'language': 'c++',
|
language='c++',
|
||||||
'libraries': [
|
libraries=[
|
||||||
'rocksdb',
|
'rocksdb',
|
||||||
'snappy',
|
'snappy',
|
||||||
'bz2',
|
'bz2',
|
||||||
'z'
|
'z'
|
||||||
]
|
]
|
||||||
}
|
|
||||||
|
|
||||||
mod1 = Extension(
|
|
||||||
'rocksdb._rocksdb',
|
|
||||||
['rocksdb/_rocksdb.pyx'],
|
|
||||||
**extension_defaults
|
|
||||||
)
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|
Loading…
Reference in a new issue