openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
scripts/bootstrap
19lines · modecode
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | cd "$(dirname "$0")/.." |
| 6 | |
| 7 | if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then |
| 8 | brew bundle check >/dev/null 2>&1 || { |
| 9 | echo "==> Installing Homebrew dependencies…" |
| 10 | brew bundle |
| 11 | } |
| 12 | fi |
| 13 | |
| 14 | echo "==> Installing Python dependencies…" |
| 15 | |
| 16 | # experimental uv support makes installations significantly faster |
| 17 | rye config --set-bool behavior.use-uv=true |
| 18 | |
| 19 | rye sync |