From c1aee6d477a175d422e6249ac53400143ab61d3a Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Mon, 11 Mar 2019 07:56:42 -0400 Subject: [PATCH] force overwrite python@2 brew links --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e79495d10..1a405004b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,10 @@ before_install: - 'if [[ $TRAVIS_OS_NAME == "osx" && ( "$tests" == "1" || "$sim" == 1 || "$examples" == "1" || "$tools" == "1" || "$python" == "1" ) ]]; then travis_retry brew update > /dev/null && brew install ccache boost-build; fi' - - 'if [[ $TRAVIS_OS_NAME == "osx" && "$python" == "1" ]]; then travis_retry brew install boost-python python2; fi' + - 'if [[ $TRAVIS_OS_NAME == "osx" && "$python" == "1" ]]; then + travis_retry brew install boost-python python2; + brew link --overwrite python@2; + fi' # we have to use python from brew rather than the system provided python # because of OSX System Integrity Protection, which prevents injecting # user-libraries (i.e. python modules) into system binaries (i.e. /usr/bin/python)