Skip to content

Commit

Permalink
Force overwrite of Python 3.11/3.12 symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed Jun 5, 2024
1 parent 8d64c2d commit d2543a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/ci-py-311-osx/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e -x -o pipefail
retry () { i=0; while [[ "$i" -lt 9 ]]; do if "$@"; then return; else sleep 30; fi; i="${i+1}"; done; "$@"; }
retry-curl () { curl -sSL --connect-timeout 25 --fail --retry 5 -w "%{stderr}[downloaded %{url_effective}]\n" "$@"; }

retry brew install --force-bottle openssl@3 python@3.11
retry brew install --force-bottle --overwrite openssl@3 python@3.11
# shellcheck disable=SC2016
sed -i '' 's,export PATH=\\",&${HOMEBREW_PREFIX}/opt/python@3.11/libexec/bin:${HOMEBREW_PREFIX}/opt/python@3.11/bin:${HOMEBREW_PREFIX}/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/bin:,' homebrew/Library/Homebrew/cmd/shellenv.sh
PATH="$HOMEBREW_PREFIX/opt/python@3.11/libexec/bin:$HOMEBREW_PREFIX/opt/python@3.11/bin:$HOMEBREW_PREFIX/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion services/ci-py-312-osx/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e -x -o pipefail
retry () { i=0; while [[ "$i" -lt 9 ]]; do if "$@"; then return; else sleep 30; fi; i="${i+1}"; done; "$@"; }
retry-curl () { curl -sSL --connect-timeout 25 --fail --retry 5 -w "%{stderr}[downloaded %{url_effective}]\n" "$@"; }

retry brew install --force-bottle openssl@3 python@3.12
retry brew install --force-bottle --overwrite openssl@3 python@3.12
# shellcheck disable=SC2016
sed -i '' 's,export PATH=\\",&${HOMEBREW_PREFIX}/opt/python@3.12/libexec/bin:${HOMEBREW_PREFIX}/opt/python@3.12/bin:${HOMEBREW_PREFIX}/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/bin:,' homebrew/Library/Homebrew/cmd/shellenv.sh
PATH="$HOMEBREW_PREFIX/opt/python@3.12/libexec/bin:$HOMEBREW_PREFIX/opt/python@3.12/bin:$HOMEBREW_PREFIX/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/bin:$PATH"
Expand Down

0 comments on commit d2543a5

Please sign in to comment.