mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-09 22:07:55 -05:00
Fix torch-mlir download URL
This commit is contained in:
@@ -74,10 +74,8 @@ fi
|
|||||||
TM_HTML_URL="$(python3 -c "import urllib.request, json, sys; \
|
TM_HTML_URL="$(python3 -c "import urllib.request, json, sys; \
|
||||||
u=json.loads(urllib.request.urlopen('https://api.github.com/repos/llvm/torch-mlir/releases/latest').read().decode()).get('html_url', False);\
|
u=json.loads(urllib.request.urlopen('https://api.github.com/repos/llvm/torch-mlir/releases/latest').read().decode()).get('html_url', False);\
|
||||||
print(u) if u else sys.exit(1);")"
|
print(u) if u else sys.exit(1);")"
|
||||||
TM_RELEASE_DOWNLOAD_DIR=`dirname ${TM_RELEASE_URL}`
|
TM_RELEASE_DIR=${TM_HTML_URL/"tag"/"expanded_assets"}
|
||||||
TM_RELEASE_DIR=${TM_HTML_URL/"tag/"/"expanded_assets"/}
|
echo "TM_HTML_URL=${TM_HTML_URL}"
|
||||||
echo "TM_RELEASE_URL=${TM_RELEASE_URL}"
|
|
||||||
echo "TM_RELEASE_DOWNLOAD_DIR=${TM_RELEASE_DOWNLOAD_DIR}"
|
|
||||||
echo "TM_RELEASE_DIR=${TM_RELEASE_DIR}"
|
echo "TM_RELEASE_DIR=${TM_RELEASE_DIR}"
|
||||||
|
|
||||||
# Upgrade pip and install requirements.
|
# Upgrade pip and install requirements.
|
||||||
|
|||||||
Reference in New Issue
Block a user