Skip to content

Commit

Permalink
Fix Matplotlib download/unpack from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Berzano authored and dberzano committed Mar 2, 2018
1 parent 6e73f17 commit be008b8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python-modules.sh
Expand Up @@ -59,11 +59,10 @@ done
unset PYTHONUSERBASE
# Install matplotlib (quite tricky)
MATPLOTLIB_VER="1.4.3"
MATPLOTLIB_URL="https://github.com/matplotlib/matplotlib/archive/${MATPLOTLIB_VER}.tar.gz"
curl -Lo matplotlib.tgz $MATPLOTLIB_URL
tar xzf matplotlib.tgz
cd matplotlib-$MATPLOTLIB_VER
MATPLOTLIB_GITREF="v1.4.3"
MATPLOTLIB_URL="https://github.com/matplotlib/matplotlib/archive/${MATPLOTLIB_GITREF}.tar.gz"
curl -SsL "$MATPLOTLIB_URL" | tar xzf -
cd matplotlib-*
cat > setup.cfg <<EOF
[directories]
basedirlist = ${FREETYPE_ROOT:+$PWD/fake_freetype_root,$FREETYPE_ROOT,}${LIBPNG_ROOT:+$LIBPNG_ROOT,}${ZLIB_ROOT:+$ZLIB_ROOT,}/usr/X11R6,$(freetype-config --prefix),$(libpng-config --prefix)
Expand Down

0 comments on commit be008b8

Please sign in to comment.