Skip to content

Commit

Permalink
Travis: export list of packages before installing glue, and make sure…
Browse files Browse the repository at this point in the history
… that Matplotlib doesn't ever default to the osx backend
  • Loading branch information
astrofrog committed Dec 29, 2016
1 parent a9bb01c commit a036b8c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,24 @@ install:
pip uninstall --yes qtpy || true;
find . -name "qt" -type d -exec rm -r {} \; || true;
rm glue/external/qt.py || true;
export MPLBACKEND='Agg';
fi

# Set MPLBACKEND to Agg by default - this will get overriden if Qt is present,
# but it avoids having Matplotlib default to the osx backend on MacOS X
- export MPLBACKEND='Agg';

# List installed packages - use the export command so as to be able to
# reproduce the exact environment locally. Do this before installing glue
# since we don't want glue to appear in the list of packages for the
# environment.
- conda env export

# We need to install glue in order to make sure that the entry points are
# installed
# installed.
- python setup.py install

# List installed packages - use the export command so as to be able to
# reproduce the exact environment locally
# List installed packages again - just to check if any packages got installed
# in the previous step.
- conda env export

script:
Expand Down

0 comments on commit a036b8c

Please sign in to comment.