diff options
Diffstat (limited to 'setup.py')
| -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) |
