Skip to content

Commit 5626e24

Browse files
committed
handle default uv path
1 parent 18ae78d commit 5626e24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.evergreen/scripts/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ -f $HERE/env.sh ]; then
1010
. $HERE/env.sh
1111
fi
1212

13-
_BIN_DIR=${PYMONGO_BIN_DIR:-}
13+
_BIN_DIR=${PYMONGO_BIN_DIR:-$HOME/.local/bin}
1414

1515
# Helper function to pip install a dependency using a temporary python env.
1616
function _pip_install() {

.evergreen/scripts/setup-dev-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ if [ ! -d $BIN_DIR ]; then
3636
echo "Using python $UV_PYTHON"
3737
fi
3838

39-
# Add the default uv install path to the path.
40-
if ! command -v uv 2>/dev/null; then
41-
export PATH="$HOME/.local/bin:$PATH"
39+
# Add the default install path to the path if needed.
40+
if [ -z "${PYMONGO_BIN_DIR:-}" ] then
41+
export PATH="$PATH:$HOME/.local/bin"
4242
fi
4343

4444
uv sync --frozen

0 commit comments

Comments
 (0)