Skip to content

Commit

Permalink
Making osx use latest python for virtualenv creationg.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsargiot committed Jan 12, 2016
1 parent 81d2993 commit 6401c99
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis-workarounds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update > /dev/null

brew install python

# Now easy_install and pip are in /usr/local we need to force link
brew link --overwrite python
brew unlink python && brew link --overwrite python

PATH="/usr/local/bin:$PATH"

pip install virtualenv
# Use brew python for virtualenv
/usr/local/bin/virtualenv -p /usr/local/bin/python ~/virtualenv/python2.7

# Create a virtualenv
virtualenv ~/virtualenv/python2.7
fi

# Workaround travis-ci/travis-ci#2065
Expand Down

0 comments on commit 6401c99

Please sign in to comment.