Skip to content

Commit c4b5143

Browse files
authored
Merge pull request #1776 from danrbailey/macos_brew_issue
Workaround for python3 brew mac CI issue on GitHub runners
2 parents 78614d0 + c910412 commit c4b5143

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/houdini.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ jobs:
160160
cd $HOME/houdini_install && tar -xzf hou.tar.gz && cd -
161161
- name: install_deps
162162
run: |
163+
# Remove Python3 symlinks in /usr/local/bin as workaround to brew update issues
164+
# https://github.com/actions/setup-python/issues/577
165+
rm /usr/local/bin/2to3* || :
166+
rm /usr/local/bin/idle3* || :
167+
rm /usr/local/bin/pydoc* || :
168+
rm /usr/local/bin/python3* || :
163169
brew update
164170
brew install bash gnu-getopt cmake boost glfw googletest openexr pybind11 llvm@15 cppunit
165171
echo "/usr/local/opt/gnu-getopt/bin" >> $GITHUB_PATH

ci/install_macos.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
set -x
44

5+
# Remove Python3 symlinks in /usr/local/bin as workaround to brew update issues
6+
# https://github.com/actions/setup-python/issues/577
7+
rm /usr/local/bin/2to3* || :
8+
rm /usr/local/bin/idle3* || :
9+
rm /usr/local/bin/pydoc* || :
10+
rm /usr/local/bin/python3* || :
11+
512
brew update
613
brew install bash gnu-getopt # for CI scripts
714
brew install boost

0 commit comments

Comments
 (0)