Browse Source

prevent usage of python2

refactoring
Sebastian Junges 8 years ago
parent
commit
7be90d75e6
  1. 2
      setup.py

2
setup.py

@ -9,6 +9,8 @@ from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion from distutils.version import LooseVersion
if sys.version_info[0] == 2:
sys.exit('Sorry, Python 2.x is not supported')
class CMakeExtension(Extension): class CMakeExtension(Extension):
def __init__(self, name, sourcedir='', subdir=''): def __init__(self, name, sourcedir='', subdir=''):

Loading…
Cancel
Save