Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 6dd3f7e

Browse files
committed
Download wheels script
1 parent e87ebcd commit 6dd3f7e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

scripts/download_wheels.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Set variables
4+
AWQ_KERNELS_VERSION="0.0.1"
5+
RELEASE_URL="https://api.github.com/repos/casper-hansen/AutoAWQ_kernels/releases/tags/v${AWQ_KERNELS_VERSION}"
6+
7+
# Create a directory to download the wheels
8+
mkdir -p dist
9+
cd dist
10+
11+
# Download all the wheel files from the GitHub release
12+
# excluding ones with '+cu' (%2B is + but encoded)
13+
curl -s $RELEASE_URL | \
14+
jq -r ".assets[].browser_download_url" | \
15+
grep '\.whl' | \
16+
grep -v '%2Bcu' | \
17+
xargs -n 1 -P 4 wget
18+
19+
# Rename the wheels from 'linux_x86_64' to 'manylinux_x86_64'
20+
for file in *linux_x86_64.whl; do
21+
mv "$file" "$(echo $file | sed 's/linux_x86_64/manylinux2014_x86_64/')"
22+
done
23+
24+
cd ..

0 commit comments

Comments
 (0)