Strategies for finding binary dependencies
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add download fallback to Python 3.9

+12 -1
+12 -1
bin/dl-wheels
··· 27 27 if ls "${wheel_dir}/${name_sanitized}-"* >/dev/null 2>&1; then 28 28 printf "→ Wheel already found, skipping %s\n" "${name}" 29 29 else 30 + # Try to download a binary that's compatible with our local Python 31 + # version 30 32 pip download --only-binary :all: --no-deps $name 31 - if [ $? -eq 0 ]; then 33 + exit_code=$? 34 + if [ $exit_code -eq 0 ]; then 35 + printf "→ Downloaded %s\n" "${name}" 36 + else 37 + # Fall back to downloading a binary compatible with Python 3.9, 38 + # since that seems to be the most widely supported 39 + pip download --python-version 3.9 --only-binary :all: --no-deps $name 40 + exit_code=$? 41 + fi 42 + if [ $exit_code -eq 0 ]; then 32 43 printf "→ Downloaded %s\n" "${name}" 33 44 else 34 45 printf "→ Could not download %s\n" "${name}"