Skip to content

Commit

Permalink
Matplotlib no longer respects its own config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdcha committed Nov 18, 2015
1 parent 98bb971 commit 2b39197
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ RUN apt-get -y install libgeos-dev && \
cd cartopy && python setup.py install && \
pip install ibis-framework

# Matplotlib, with backend set to Agg
RUN cd /usr/local/src && git clone https://github.com/matplotlib/matplotlib.git && \
cd matplotlib && mv setup.cfg.template setup.cfg && echo "backend = Agg" >> setup.cfg && \
python setup.py build && python setup.py install
# set backend for matplotlib to Agg
RUN matplotlibrc_path=$(python -c "import site, os, fileinput; packages_dir = site.getsitepackages()[0]; print(os.path.join(packages_dir, 'matplotlib', 'mpl-data', 'matplotlibrc'))") && \
sed -i 's/^backend : Qt4Agg/backend : Agg/' $matplotlibrc_path

# MXNet
# The g++4.8 dependency is not currently available via the default apt-get
Expand Down

0 comments on commit 2b39197

Please sign in to comment.