forked from phoenix-oss/llama-stack-mirror
Add a script for install a pip wheel from a presigned url
This commit is contained in:
parent
9777639a1c
commit
c1a82ea8cd
5 changed files with 68 additions and 1 deletions
18
llama_toolchain/cli/scripts/run.py
Normal file
18
llama_toolchain/cli/scripts/run.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def install_wheel_from_presigned():
|
||||
file = "install-wheel-from-presigned.sh"
|
||||
script_path = os.path.join(os.path.dirname(__file__), file)
|
||||
try:
|
||||
subprocess.run(["sh", script_path] + sys.argv[1:], check=True)
|
||||
except Exception:
|
||||
sys.exit(1)
|
Loading…
Add table
Add a link
Reference in a new issue