Skip to content

Commit 21b4109

Browse files
authored
DRIVERS-3032: Python CLI for drivers-evergreen-tools. Fix uv install on Windows. (#650)
1 parent fa58b39 commit 21b4109

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.evergreen/install-cli.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,16 @@ if ! command -V uv &>/dev/null; then
7171
# Install uv into the newly created venv.
7272
python -m pip install -q --force-reinstall uv
7373
_suffix=""
74-
if [ "Windows_NT" = "${OS:-}" ]; then
75-
_suffix=".exe"
76-
fi
7774
# Symlink uv and uvx binaries.
7875
_install_dir="${DRIVERS_TOOLS}/.bin"
7976
mkdir -p "$_install_dir"
80-
ln -s "$(which uv)" "$_install_dir/uv${_suffix}"
81-
ln -s "$(which uvx)" "$_install_dir/uvx${_suffix}"
77+
if [ "Windows_NT" = "${OS:-}" ]; then
78+
ln -s "${_venv_dir}/Scripts/uv.exe" "$_install_dir/uv.exe"
79+
ln -s "${_venv_dir}/Scripts/uvx.exe" "$_install_dir/uvx.exe"
80+
else
81+
ln -s "$(which uv)" "$_install_dir/uv"
82+
ln -s "$(which uvx)" "$_install_dir/uvx"
83+
fi
8284
echo "Installed to ${_install_dir}"
8385
deactivate
8486
echo "Installing uv using pip... done."

0 commit comments

Comments
 (0)