Skip to content

Commit

Permalink
Merge pull request #229 from mu-editor/travis_osx_py35
Browse files Browse the repository at this point in the history
Force Travis OS X to install Python 3.5
  • Loading branch information
ntoll committed Jan 18, 2017
2 parents d7cb09f + f4cc2e2 commit 50b1a00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo python3 -c "import sys; print(sys.executable)"; fi

install:
# Python 3 and pip 3 installation are OS dependant
# Python 3 and pip 3 installation are OS dependent
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash package/install_osx.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash package/install_linux.sh; fi

Expand Down
9 changes: 8 additions & 1 deletion package/install_osx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash
set -ev
brew update >/dev/null 2>&1 # This produces a lot of output that's not very interesting
brew install python3

# Install Python 3.5 creates python3, python3.5, and pip3.5 commands but no pip3
brew tap zoidbergwill/python
brew install python35
# Contrary zoidbergwill tap documentation turns out this symbolic link is not required
# sudo ln -s /usr/local/Cellar/python35/3.5.2/bin/python3.5 /usr/bin/python3

# Copy pip3.5 symlink rather than creating one, better in case installation path changes
cp -R /usr/local/bin/pip3.5 /usr/local/bin/pip3

0 comments on commit 50b1a00

Please sign in to comment.