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 6, 2024
1 parent 8d64c2d commit 1f38a80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/ci-py-311-osx/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ retry () { i=0; while [[ "$i" -lt 9 ]]; do if "$@"; then return; else sleep 30;
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 postinstall --overwrite 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
1 change: 1 addition & 0 deletions services/ci-py-312-osx/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ retry () { i=0; while [[ "$i" -lt 9 ]]; do if "$@"; then return; else sleep 30;
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 postinstall --overwrite 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 1f38a80

Please sign in to comment.