openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
scripts/bootstrap
27lines · modeblame
d2738d42Stainless Bot2 years ago | 1 | #!/usr/bin/env bash |
| 2 | | |
| 3 | set -e | |
| 4 | | |
| 5 | cd "$(dirname "$0")/.." | |
| 6 | | |
9272e61astainless-app[bot]9 months ago | 7 | if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then |
d2738d42Stainless Bot2 years ago | 8 | brew bundle check >/dev/null 2>&1 || { |
9272e61astainless-app[bot]9 months ago | 9 | echo -n "==> Install Homebrew dependencies? (y/N): " |
| 10 | read -r response | |
| 11 | case "$response" in | |
| 12 | [yY][eE][sS]|[yY]) | |
| 13 | brew bundle | |
| 14 | ;; | |
| 15 | *) | |
| 16 | ;; | |
| 17 | esac | |
| 18 | echo | |
d2738d42Stainless Bot2 years ago | 19 | } |
| 20 | fi | |
| 21 | | |
| 22 | echo "==> Installing Python dependencies…" | |
| 23 | | |
| 24 | # experimental uv support makes installations significantly faster | |
| 25 | rye config --set-bool behavior.use-uv=true | |
| 26 | | |
| 27 | rye sync |