Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
de945c60
Commit
de945c60
authored
Sep 01, 2023
by
Casper
Browse files
Add script for downloading built wheels
parent
f0eba437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
scripts/download_wheels.sh
scripts/download_wheels.sh
+21
-0
No files found.
scripts/download_wheels.sh
0 → 100644
View file @
de945c60
#!/bin/bash
# Set the GitHub release URL
RELEASE_URL
=
"https://api.github.com/repos/casper-hansen/AutoAWQ/releases/tags/v0.0.1"
# Create a directory to download the wheels
mkdir
-p
dist
cd
dist
# Download all the wheel files from the GitHub release
curl
-s
$RELEASE_URL
|
\
jq
-r
".assets[].browser_download_url"
|
\
grep
.whl |
\
xargs
-n
1 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
..
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment