diff options
author | Kenneth Reitz <me@kennethreitz.org> | 2017-08-27 03:26:21 -0400 |
---|---|---|
committer | Kenneth Reitz <me@kennethreitz.org> | 2017-08-27 03:26:21 -0400 |
commit | a50ff92ff2aaeae5958728cc4363f0ced23ad772 (patch) | |
tree | 91756c1c53dae996c29db00b57f2b800e10683d5 | |
parent | 383d4b9c4e0fc24d5a406cfd3293432821f7901e (diff) | |
download | tablib-a50ff92ff2aaeae5958728cc4363f0ced23ad772.tar.gz |
only require pandas if python isn't 2.6
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
-rwxr-xr-x | setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |