Update setup.py

This commit is contained in:
iFA 2020-09-03 08:54:08 +02:00 committed by GitHub
parent 65ce14e6a7
commit 31b19f1a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",