Elffuss BraidHub

kikocis/llama-stack public

8bc845d9f389 · 742 B · executableRawPermalink
1#!/bin/bash
2
3# Copyright (c) Meta Platforms, Inc. and affiliates.
4# All rights reserved.
5#
6# This source code is licensed under the terms described in the LICENSE file in
7# the root directory of this source tree.
8
9PYTHONPATH=${PYTHONPATH:-}
10
11set -euo pipefail
12
13missing_packages=()
14
15check_package() {
16 if ! pip show "$1" &>/dev/null; then
17 missing_packages+=("$1")
18 fi
19}
20
21check_package json-strong-typing
22
23if [ ${#missing_packages[@]} -ne 0 ]; then
24 echo "Error: The following package(s) are not installed:"
25 printf " - %s\n" "${missing_packages[@]}"
26 echo "Please install them using:"
27 echo "pip install ${missing_packages[*]}"
28 exit 1
29fi
30
31PYTHONPATH=$PYTHONPATH:../.. python -m rfcs.openapi_generator.generate $*