Add checking for setuptools version
This commit is contained in:
10
setup.py
10
setup.py
@@ -8,12 +8,20 @@ except ImportError:
|
||||
if Cython.__version__ < '0.19.1':
|
||||
raise RuntimeError('Old cython installed. Please run `pip install -U cython`')
|
||||
|
||||
try:
|
||||
import setuptools
|
||||
except ImportError:
|
||||
raise RuntimeError('No setuptools installed. Please run `pip install setuptools`')
|
||||
|
||||
if setuptools.__version__ < '.0.9.8':
|
||||
raise RuntimeError('Old setuptools installed. Please run `pip install -U setuptools`')
|
||||
|
||||
from distutils.core import setup
|
||||
import os
|
||||
|
||||
MAJOR = 0
|
||||
MINOR = 2
|
||||
MICRO = 7
|
||||
MICRO = 8
|
||||
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user