From 7be90d75e60c8e321e76eb894acb15c57a9369fc Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Wed, 7 Dec 2016 23:04:19 +0100 Subject: [PATCH] prevent usage of python2 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index f7bd2fa..84a0332 100755 --- a/setup.py +++ b/setup.py @@ -9,6 +9,8 @@ from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion +if sys.version_info[0] == 2: + sys.exit('Sorry, Python 2.x is not supported') class CMakeExtension(Extension): def __init__(self, name, sourcedir='', subdir=''):