Skip to content

Commit 0169abf

Browse files
committed
debug path
1 parent 7969c87 commit 0169abf

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.evergreen/scripts/install-dependencies.sh

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

13-
_BIN_DIR=${PYMONGO_BIN_DIR:-$(pwd)}
13+
_BIN_DIR=${PYMONGO_BIN_DIR:-}
14+
15+
# Handle remote containers/VMS.
16+
if [ -z "$BIN_DIR" ] && [ "$(uname -s)" = "Linux" ]; then
17+
_BIN_DIR=/usr/local/bin
18+
fi
1419

1520
# Helper function to pip install a dependency using a temporary python env.
1621
function _pip_install() {
@@ -28,6 +33,10 @@ function _pip_install() {
2833

2934
# Ensure just is installed.
3035
if ! command -v just 2>/dev/null; then
36+
if [ -z "$BIN_DIR" ]; then
37+
echo "Please install just!"
38+
exit 1
39+
fi
3140
# On most systems we can install directly.
3241
_TARGET=""
3342
if [ "Windows_NT" = "${OS:-}" ]; then
@@ -43,6 +52,10 @@ fi
4352

4453
# Install uv.
4554
if ! command -v uv 2>/dev/null; then
55+
if [ -z "$BIN_DIR" ]; then
56+
echo "Please install uv!"
57+
exit 1
58+
fi
4659
echo "Installing uv..."
4760
# On most systems we can install directly.
4861
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="$_BIN_DIR" INSTALLER_NO_MODIFY_PATH=1 sh || {

0 commit comments

Comments
 (0)