Add checking for setuptools version

This commit is contained in:
Jason Paryani
2013-08-12 13:26:48 -07:00
parent da620ddaa8
commit 07eb561661
2 changed files with 11 additions and 3 deletions

View File

@@ -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)