openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
scripts/bootstrap
27lines · modecode
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | cd "$(dirname "$0")/.." |
| 6 | |
| 7 | if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then |
| 8 | brew bundle check >/dev/null 2>&1 || { |
| 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 |
| 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 |
| 28 | |