Skip to content

Commit

Permalink
Check on datamgr mapd and skip if python < 3
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 29, 2018
1 parent 4c1d270 commit 8c2c826
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ci/datamgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import six
import sys
import click
import tarfile

Expand Down Expand Up @@ -205,6 +206,12 @@ def sqlite(database, schema, tables, data_directory, **params):
@click.option('-t', '--tables', multiple=True, default=TEST_TABLES)
@click.option('-d', '--data-directory', default=DATA_DIR)
def mapd(schema, tables, data_directory, **params):
if sys.version_info[0] < 3:
click.echo(
'[MAPD|EE] MapD backend is unavailable for Python 2.'
)
return

import pymapd

data_directory = Path(data_directory)
Expand Down
1 change: 0 additions & 1 deletion ci/requirements-dev-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dependencies:
- plumbum
- psycopg2
- pyarrow>=0.6.0
- pymapd
- pymysql
- pytables
- pytest
Expand Down

0 comments on commit 8c2c826

Please sign in to comment.