Skip to content

Commit bb01654

Browse files
committed
PYTHON-5365 Fix handing of remote tests
1 parent 0ec5778 commit bb01654

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.evergreen/scripts/install-dependencies.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ if [ -f $HERE/env.sh ]; then
1010
. $HERE/env.sh
1111
fi
1212

13+
# Set a default bin directory.
14+
PYMONGO_BIN_DIR="${PYMONGO_BIN_DIR:-$HOME/.local/bin}"
15+
1316
# Helper function to pip install a dependency using a temporary python env.
1417
function _pip_install() {
1518
_HERE=$(dirname ${BASH_SOURCE:-$0})
@@ -41,10 +44,6 @@ if ! command -v just &>/dev/null; then
4144
if [ "Windows_NT" = "${OS:-}" ]; then
4245
_TARGET="--target x86_64-pc-windows-msvc"
4346
fi
44-
if [ -z "${PYMONGO_BIN_DIR:-}" ]; then
45-
echo "Please install just!"
46-
exit 1
47-
fi
4847
_BIN_DIR=$PYMONGO_BIN_DIR
4948
echo "Installing just..."
5049
mkdir -p "$_BIN_DIR" 2>/dev/null || true
@@ -56,10 +55,6 @@ fi
5655

5756
# Ensure uv is installed.
5857
if ! command -v uv &>/dev/null; then
59-
if [ -z "${PYMONGO_BIN_DIR:-}" ]; then
60-
echo "Please install uv!"
61-
exit 1
62-
fi
6358
_BIN_DIR=$PYMONGO_BIN_DIR
6459
echo "Installing uv..."
6560
# On most systems we can install directly.

0 commit comments

Comments
 (0)