From 2b49d949b3966745c5b9e942f29fe83bdf644fc7 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Thu, 30 Jan 2020 04:13:05 -0800 Subject: [PATCH] Fix Travis CI Python issues by manually linking Python3 For some reason Homebrew started getting Python conflict issues with Python linked to `python@2`. Add a manual force linking to python3 as a before_install step. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index d8c9702de4..3ab81e01d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,9 @@ anchors: - python - ruby update: true + before_install: + # Homebrew has issues linking Python due to conflicts with Python2. Manually link in Python3. + - brew link --overwrite python3 - &lang_env env: "LANGOPT='--enable-perlinterp=dynamic --enable-pythoninterp=dynamic --enable-python3interp=dynamic --enable-rubyinterp=dynamic --enable-luainterp=dynamic --with-lua-prefix=/usr/local'" - &caches