Skip to content

Commit 8cbaede

Browse files
committed
fix(install): 🐛 simplify uv python helper
1 parent 1528a6d commit 8cbaede

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,12 @@ install_optional_apt_package() {
196196
}
197197

198198
install_uv_python_version() {
199-
local python_version="${1:-$UV_PYTHON_VERSION}"
200-
201-
if uv python install --preview --default "$python_version"; then
199+
if uv python install --preview --default "$UV_PYTHON_VERSION"; then
202200
return 0
203201
fi
204202

205-
echo "⚠️ uv default executables require preview mode; falling back to Python $python_version without default executables."
206-
uv python install "$python_version" || true
203+
echo "⚠️ uv default executables require preview mode; falling back to Python $UV_PYTHON_VERSION without default executables."
204+
uv python install "$UV_PYTHON_VERSION" || true
207205
}
208206

209207
# Get the latest nvm tag from GitHub (falls back silently on failure)

0 commit comments

Comments
 (0)