Skip to content

Commit

Permalink
Try fixing linux (by running only for 3.6) and Python (by checking br…
Browse files Browse the repository at this point in the history
…ew package list)
  • Loading branch information
Mbompr authored and PhilipDeegan committed Mar 5, 2019
1 parent e906771 commit e432a0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 7 additions & 3 deletions tools/travis/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ eval "$(pyenv init -)"
pyenv global ${PYVER}
pyenv local ${PYVER}

# needed for basemap see https://github.com/matplotlib/basemap/issues/414#issuecomment-436792915
python -m pip install https://github.com/jswhit/pyproj/archive/v1.9.5.1rel.zip
python -m pip install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz
if (( PYMAJ == 3 )) && (( PYMIN == 7 )); then
echo "Skipping installing only needed for doctest which are not run on Python 3.7 (see bellow)"
else
# needed for basemap see https://github.com/matplotlib/basemap/issues/414#issuecomment-436792915
python -m pip install https://github.com/jswhit/pyproj/archive/v1.9.5.1rel.zip
python -m pip install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz
fi

## disabled for the moment - re-enable later
#python -m pip install yapf --upgrade
Expand Down
8 changes: 7 additions & 1 deletion tools/travis/osx_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ python -m pip install -r requirements.txt
python -m pip install sphinx pillow
python -m pip install cpplint
[[ "${PYVER}" != "3.7.0" ]] && python -m pip install tensorflow # does not yet exist on python 3.7
brew install geos

# Check if not already installed
if brew ls --versions geos > /dev/null; then
echo "geos is already installed"
else
brew install geos
fi
# needed for basemap see https://github.com/matplotlib/basemap/issues/414#issuecomment-436792915
python -m pip install https://github.com/jswhit/pyproj/archive/v1.9.5.1rel.zip
python -m pip install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz
Expand Down

0 comments on commit e432a0f

Please sign in to comment.