Skip to content

Commit

Permalink
Merge pull request #177 from cpcloud/ambig
Browse files Browse the repository at this point in the history
Fix ambiguity and test odo on travis with blaze binstar channel datashape
  • Loading branch information
cpcloud committed Apr 23, 2015
2 parents 54edd6b + bae9316 commit 62ea6ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ install:
- conda create -n odo-test python=$TRAVIS_PYTHON_VERSION pytest numpy pandas sqlalchemy h5py pip cython bcolz coverage networkx toolz multipledispatch pytables dynd-python pymongo paramiko boto dask
- source activate odo-test

# datashape
- conda install datashape -c blaze

# Install various deps
- pip install sas7bdat

# Install DataShape
- pip install --upgrade git+http://github.com/ContinuumIO/datashape

# install pyspark
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda install spark=$SPARK_VERSION -c blaze -c https://conda.binstar.org/blaze/channel/dev; fi

Expand Down
7 changes: 5 additions & 2 deletions odo/backends/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ def file_to_temp_url_file(data, **kwargs):
return append(target, data, **kwargs)

try:
from .hdfs import HDFS
from .aws import S3
except ImportError:
pass
Expand All @@ -168,7 +167,11 @@ def file_to_temp_url_file(data, **kwargs):
@append.register(S3(JSONLines), URL(JSONLines))
def other_remote_text_to_url_text(a, b, **kwargs):
raise MDNotImplementedError()

try:
from .hdfs import HDFS
except ImportError:
pass
else:
@append.register(HDFS(JSON), URL(JSON))
@append.register(HDFS(TextFile), URL(TextFile))
@append.register(HDFS(JSONLines), URL(JSONLines))
Expand Down

0 comments on commit 62ea6ae

Please sign in to comment.