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)