···2727 if ls "${wheel_dir}/${name_sanitized}-"* >/dev/null 2>&1; then
2828 printf "→ Wheel already found, skipping %s\n" "${name}"
2929 else
3030+ # Try to download a binary that's compatible with our local Python
3131+ # version
3032 pip download --only-binary :all: --no-deps $name
3131- if [ $? -eq 0 ]; then
3333+ exit_code=$?
3434+ if [ $exit_code -eq 0 ]; then
3535+ printf "→ Downloaded %s\n" "${name}"
3636+ else
3737+ # Fall back to downloading a binary compatible with Python 3.9,
3838+ # since that seems to be the most widely supported
3939+ pip download --python-version 3.9 --only-binary :all: --no-deps $name
4040+ exit_code=$?
4141+ fi
4242+ if [ $exit_code -eq 0 ]; then
3243 printf "→ Downloaded %s\n" "${name}"
3344 else
3445 printf "→ Could not download %s\n" "${name}"