Merge pull request #20 from metachris/osx-support
OSX support for building, simple update in setup.py
This commit is contained in:
commit
8b8781f450
1 changed files with 14 additions and 8 deletions
14
setup.py
14
setup.py
|
@ -1,3 +1,4 @@
|
|||
import platform
|
||||
from setuptools import setup
|
||||
from setuptools import find_packages
|
||||
from distutils.extension import Extension
|
||||
|
@ -10,9 +11,6 @@ except ImportError:
|
|||
else:
|
||||
sources = ['rocksdb/_rocksdb.pyx']
|
||||
|
||||
mod1 = Extension(
|
||||
'rocksdb._rocksdb',
|
||||
sources,
|
||||
extra_compile_args = [
|
||||
'-std=c++11',
|
||||
'-O3',
|
||||
|
@ -20,7 +18,15 @@ mod1 = Extension(
|
|||
'-Wextra',
|
||||
'-Wconversion',
|
||||
'-fno-strict-aliasing'
|
||||
],
|
||||
]
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
extra_compile_args += ['-mmacosx-version-min=10.7', '-stdlib=libc++']
|
||||
|
||||
mod1 = Extension(
|
||||
'rocksdb._rocksdb',
|
||||
sources,
|
||||
extra_compile_args=extra_compile_args,
|
||||
language='c++',
|
||||
libraries=[
|
||||
'rocksdb',
|
||||
|
|
Loading…
Reference in a new issue