Skip to content

Commit

Permalink
Merge pull request #102 from courtois-neuromod/fix/matplotlib_cachedir
Browse files Browse the repository at this point in the history
[FIX] add matplotlib envvar, fix non-writeable cache dir error
  • Loading branch information
yarikoptic authored Aug 10, 2023
2 parents 14357d0 + 9f824dc commit ac2ea87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/singularity_cmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ if [ -n "${DATALAD_CONTAINER_NAME:-}" ]; then
export APPTAINERENV_DATALAD_CONTAINER_NAME="$DATALAD_CONTAINER_NAME"
fi

# fix non-writable matplotlib cache dir in apptainer https://github.com/ReproNim/containers/issues/97
export SINGULARITYENV_MPLCONFIGDIR=/tmp/mpl-config
export APPTAINERENV_MPLCONFIGDIR=/tmp/mpl-config

# singularity bind mounts system /tmp, which might result in side-effects
# Create a dedicated temporary directory to be removed upon completion
# Mac's tmpdir (with default options) causes problems when a singularity
Expand Down

0 comments on commit ac2ea87

Please sign in to comment.