Skip to content

Commit

Permalink
shell: Avoid manual PYTHONPATH setting
Browse files Browse the repository at this point in the history
It made switching between Python 2 and 3 environments problematic.

The solution (on Mavericks) for getting hg-git working with Homebrew
mercurial (which uses system Python) was to get pip installed via
`/usr/bin/easy_install --prefix=/usr pip` and get it installing packages
to /Library/Python/2.7/site-packages which is on the path.
  • Loading branch information
ches committed Jul 23, 2015
1 parent cc65afd commit 806901c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .bash.d/platform-osx.sh
Expand Up @@ -20,10 +20,6 @@ export NODE_PATH="/usr/local/lib/node_modules"

[[ -r /usr/local/bin/virtualenvwrapper.sh ]] && source /usr/local/bin/virtualenvwrapper.sh

# Tell system Python 2.7 where Homebrew Python's modules are. This gets
# Mercurial plugins like hg-git installed with brew's pip to work.
export PYTHONPATH=$BREW/lib/python2.7/site-packages

#
# Custom Shake path
#
Expand Down

0 comments on commit 806901c

Please sign in to comment.