mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 06:56:13 +00:00
only require pandas if python isn't 2.6
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user