Skip to content

Commit 2f0135e

Browse files
committed
ci: try fixing python 3.10 in macos 15
1 parent 20b3149 commit 2f0135e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/ci/02-install-python.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33
if [ ! -d "${PYENV_ROOT:?}" ]; then
44
git clone -b "v${PYENV_VERSION:?}" "https://github.com/pyenv/pyenv.git" "${PYENV_ROOT:?}"
55
fi
6-
pyenv install -s "${PYTHON_VERSION:?}"
6+
7+
# https://github.com/pyenv/pyenv/issues/3211
8+
if [[ $( sw_vers -productVersion 2>/dev/null ) == 15.* ]]; then
9+
export PYTHON_BUILD_HOMEBREW_OPENSSL_FORMULA="openssl@3"
10+
fi
11+
12+
pyenv install -s "${PYTHON_VERSION:?}"

0 commit comments

Comments
 (0)