diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 718b463c1f1c1..e4d7f43cd7d36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,6 +75,14 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Remove stray upstream python binary symlinks under /usr/local + run: | + for lfile in $(find /usr/local/bin -type l); do + readlink "${lfile}"; + done + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + brew link --overwrite python + - name: Install dependencies run: | brew update