Skip to content

Commit

Permalink
Add fix for Matplotlib 1.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrankin committed Aug 10, 2016
1 parent 11a871f commit 3981a20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .bashrc
Expand Up @@ -41,6 +41,15 @@ if [ "${os_name}" = 'Darwin' ]; then
. $(brew --prefix)/etc/bash_completion
fi

# Fix for matplotlib 1.5+ requiring a framework build, and I'm using venv
function frameworkpython {
if [[ ! -z "$VIRTUAL_ENV" ]]; then
PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python "$@"
else
/usr/local/bin/python "$@"
fi
}

# Added per Homebrew go info
export PATH=$PATH:/usr/local/opt/go/libexec/bin

Expand Down

0 comments on commit 3981a20

Please sign in to comment.