From e7a6757969c5f5dd3a5b8b3817d917cdf974ebcb Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Fri, 9 Feb 2018 23:43:33 +0100 Subject: [PATCH] swtich matplotlib backend to agg by default --- gitlab/functions.sh | 5 +++++ gitlab/install.sh | 1 + gitlab/matplotlibrc | 1 + 3 files changed, 7 insertions(+) create mode 100644 gitlab/matplotlibrc diff --git a/gitlab/functions.sh b/gitlab/functions.sh index bfeb4e8..33b634f 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -440,3 +440,8 @@ LANG="en_US.UTF-8" LC_ALL="${LANG}" export_env LANG export_env LC_ALL + +# Set up the location of matplotlibrc: +# https://matplotlib.org/users/customizing.html#the-matplotlibrc-file +MATPLOTLIBRC="_ci" +export_env MATPLOTLIBRC diff --git a/gitlab/install.sh b/gitlab/install.sh index 78d4808..cbf16a7 100755 --- a/gitlab/install.sh +++ b/gitlab/install.sh @@ -61,6 +61,7 @@ get_script ${1} cacert.pem get_script ${1} functions.sh get_script ${1} conda_build_config.yaml get_script ${1} recipe_append.yaml +get_script ${1} matplotlibrc get_exec ${1} before_build.sh for stage in "build" "deploy" "pypi"; do get_exec ${1} ${stage}.sh diff --git a/gitlab/matplotlibrc b/gitlab/matplotlibrc new file mode 100644 index 0000000..ed50975 --- /dev/null +++ b/gitlab/matplotlibrc @@ -0,0 +1 @@ +backend : agg -- GitLab