From 31b19f1a2156d318686859381c4ab0f207faa951 Mon Sep 17 00:00:00 2001 From: iFA Date: Thu, 3 Sep 2020 08:54:08 +0200 Subject: [PATCH] Update setup.py --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6b4dfc4..283285c 100644 --- a/setup.py +++ b/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",