kikocis/llama-stack public
| 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 2 | # All rights reserved. |
| 3 | # |
| 4 | # This source code is licensed under the terms described in the LICENSE file in |
| 5 | # the root directory of this source tree. |
| 6 | |
| 7 | import os |
| 8 | import subprocess |
| 9 | import sys |
| 10 | |
| 11 | |
| 12 | def install_wheel_from_presigned(): |
| 13 | file = "install-wheel-from-presigned.sh" |
| 14 | script_path = os.path.join(os.path.dirname(__file__), file) |
| 15 | try: |
| 16 | subprocess.run(["sh", script_path] + sys.argv[1:], check=True) |
| 17 | except Exception: |
| 18 | sys.exit(1) |