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
bf64abd8
"...git@developer.sourcefind.cn:OpenDAS/llama-factory.git" did not exist on "849877159ac0c6cc6397decc31e2b1073d765950"
Unverified
Commit
bf64abd8
authored
Nov 02, 2023
by
Casper
Committed by
GitHub
Nov 02, 2023
Browse files
Revert to previous version (#141)
parent
f3f05c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
scripts/download_wheels.sh
scripts/download_wheels.sh
+2
-12
No files found.
scripts/download_wheels.sh
View file @
bf64abd8
...
...
@@ -2,7 +2,6 @@
# Set variables
AWQ_VERSION
=
"0.1.6"
CUDA_VERSION
=
"cu1180"
RELEASE_URL
=
"https://api.github.com/repos/casper-hansen/AutoAWQ/releases/tags/v
${
AWQ_VERSION
}
"
# Create a directory to download the wheels
...
...
@@ -13,20 +12,11 @@ cd dist
curl
-s
$RELEASE_URL
|
\
jq
-r
".assets[].browser_download_url"
|
\
grep
'\.whl'
|
\
grep
"
$CUDA_VERSION
"
|
\
xargs
-n
1 wget
# Rename the wheels from 'linux_x86_64' to 'manylinux_x86_64'
# Remove CUDA version from filename
for
file
in
*
"
$CUDA_VERSION
"
*
.whl
;
do
# First, rename the platform from 'linux_x86_64' to 'manylinux2014_x86_64'
intermediate_name
=
$(
echo
"
$file
"
|
sed
's/linux_x86_64/manylinux2014_x86_64/'
)
# Then, remove the CUDA version from the filename
newname
=
$(
echo
"
$intermediate_name
"
|
sed
"s/+
${
CUDA_VERSION
}
//"
)
mv
-v
"
$file
"
"
$newname
"
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