Skip to content

Commit

Permalink
import matplotlib during install to ensure that the font cache is gen…
Browse files Browse the repository at this point in the history
…erated.
  • Loading branch information
tskisner committed Jan 30, 2018
1 parent 7337c82 commit 05dba30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/install_imaging.in
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ fi
python@PYVERSION@ -m compileall -f "@CONDA_PREFIX@/lib/python@PYVERSION@/site-packages"
python@PYVERSION@ -m compileall -f "@AUX_PREFIX@"

# Import packages that may need to generate files in the
# install prefix

python@PYVERSION@ -c "import astropy"
python@PYVERSION@ -c "import matplotlib.font_manager as fm; f = fm.FontManager"

# Set permissions

if [ "x@CHGRP@" != "x" ]; then
Expand Down
6 changes: 6 additions & 0 deletions tools/install_minimal.in
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ fi
python@PYVERSION@ -m compileall -f "@CONDA_PREFIX@/lib/python@PYVERSION@/site-packages"
python@PYVERSION@ -m compileall -f "@AUX_PREFIX@"

# Import packages that may need to generate files in the
# install prefix

python@PYVERSION@ -c "import astropy"
python@PYVERSION@ -c "import matplotlib.font_manager as fm; f = fm.FontManager"

# Set permissions

if [ "x@CHGRP@" != "x" ]; then
Expand Down
6 changes: 6 additions & 0 deletions tools/install_spectro.in
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ fi
python@PYVERSION@ -m compileall -f "@CONDA_PREFIX@/lib/python@PYVERSION@/site-packages"
python@PYVERSION@ -m compileall -f "@AUX_PREFIX@"

# Import packages that may need to generate files in the
# install prefix

python@PYVERSION@ -c "import astropy"
python@PYVERSION@ -c "import matplotlib.font_manager as fm; f = fm.FontManager"

# Set permissions

if [ "x@CHGRP@" != "x" ]; then
Expand Down

0 comments on commit 05dba30

Please sign in to comment.