-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e87ebcd
commit 6dd3f7e
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Set variables | ||
AWQ_KERNELS_VERSION="0.0.1" | ||
RELEASE_URL="https://api.github.com/repos/casper-hansen/AutoAWQ_kernels/releases/tags/v${AWQ_KERNELS_VERSION}" | ||
|
||
# Create a directory to download the wheels | ||
mkdir -p dist | ||
cd dist | ||
|
||
# Download all the wheel files from the GitHub release | ||
# excluding ones with '+cu' (%2B is + but encoded) | ||
curl -s $RELEASE_URL | \ | ||
jq -r ".assets[].browser_download_url" | \ | ||
grep '\.whl' | \ | ||
grep -v '%2Bcu' | \ | ||
xargs -n 1 -P 4 wget | ||
|
||
# Rename the wheels from 'linux_x86_64' to 'manylinux_x86_64' | ||
for file in *linux_x86_64.whl; do | ||
mv "$file" "$(echo $file | sed 's/linux_x86_64/manylinux2014_x86_64/')" | ||
done | ||
|
||
cd .. |