Update setup.py
This commit is contained in:
parent
65ce14e6a7
commit
31b19f1a21
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
@ -1,4 +1,4 @@
|
|||
import platform
|
||||
import platform, sys
|
||||
from setuptools import setup
|
||||
from setuptools import find_packages
|
||||
from setuptools import Extension
|
||||
|
@ -17,6 +17,8 @@ extra_compile_args = [
|
|||
if platform.system() == 'Darwin':
|
||||
extra_compile_args += ['-mmacosx-version-min=10.7', '-stdlib=libc++']
|
||||
|
||||
if sys.version_info < (3 , 0):
|
||||
raise Exception("pyRocksDB require Python 3.x")
|
||||
|
||||
setup(
|
||||
name="python-rocksdb",
|
||||
|
|
Loading…
Reference in a new issue