mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
fix(install): only add the legacy-encryption extra on ref installs
Released PyPI versions do not define the legacy-encryption extra yet and uv refuses unknown extras, so the default curl|sh path must stay plain litellm[proxy]; ref installs build from this repo's pyproject, which does define it, and keep the extra so a rebuilt tool environment can still read previously stored nacl credentials.
This commit is contained in:
parent
7518972d4b
commit
3d2e58d20e
1 changed files with 4 additions and 2 deletions
|
|
@ -19,9 +19,11 @@ set -eu
|
|||
# example, to QA lite autoroute against an unreleased branch, which needs this proxy
|
||||
# runtime, not the thin litellm[cli] install).
|
||||
if [ -n "${LITELLM_CLI_REF:-}" ]; then
|
||||
# Ref installs come from this repo, whose pyproject defines the legacy-encryption
|
||||
# extra; released PyPI versions do not carry it yet, and uv refuses unknown extras.
|
||||
LITELLM_PACKAGE="litellm[proxy,legacy-encryption] @ git+https://github.com/BerriAI/litellm.git@${LITELLM_CLI_REF}"
|
||||
else
|
||||
LITELLM_PACKAGE="litellm[proxy,legacy-encryption]"
|
||||
LITELLM_PACKAGE="litellm[proxy]"
|
||||
fi
|
||||
UV_VERSION="0.10.9"
|
||||
|
||||
|
|
@ -96,7 +98,7 @@ echo ""
|
|||
if [ -n "${LITELLM_CLI_REF:-}" ]; then
|
||||
header "Installing litellm[proxy,legacy-encryption] from ${LITELLM_CLI_REF}…"
|
||||
else
|
||||
header "Installing litellm[proxy,legacy-encryption]…"
|
||||
header "Installing litellm[proxy]…"
|
||||
fi
|
||||
echo ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue