From a50ff92ff2aaeae5958728cc4363f0ced23ad772 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 27 Aug 2017 03:26:21 -0400 Subject: [PATCH] only require pandas if python isn't 2.6 Signed-off-by: Kenneth Reitz --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 5691821..ad94b65 100755 --- a/setup.py +++ b/setup.py @@ -47,10 +47,13 @@ install = [ 'unicodecsv', 'xlrd', 'xlwt', - 'pyyaml', - 'pandas', + 'pyyaml' ] +# only require Pandas if Python isn't 2.6. +if not (sys.version_info[0] == 2 and sys.version_info[1] == 6): + install.append('pandas') + with open('tablib/core.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)