Skip to content

Commit e78225c

Browse files
[macos] add retries to PyPy installation (#8578)
1 parent 691345d commit e78225c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/macos/provision/core/pypy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ function InstallPyPy
7676
}
7777

7878
arch=$(get_arch)
79-
pypyVersions=$(curl -fsSL https://downloads.python.org/pypy/versions.json)
79+
download_with_retries "https://downloads.python.org/pypy/versions.json" "/tmp" "pypy-versions.json"
8080
toolsetVersions=$(get_toolset_value '.toolcache[] | select(.name | contains("PyPy")) | .arch.'$arch'.versions[]')
8181

8282
for toolsetVersion in $toolsetVersions; do
83-
latestMajorPyPyVersion=$(echo $pypyVersions |
83+
latestMajorPyPyVersion=$(cat /tmp/pypy-versions.json |
8484
jq -r --arg toolsetVersion $toolsetVersion '.[]
8585
| select((.python_version | startswith($toolsetVersion)) and .stable == true).files[]
8686
| select(.platform == "darwin").download_url' | head -1)

0 commit comments

Comments
 (0)