Skip to content

Commit e914680

Browse files
committed
cleanup
1 parent 5389c3d commit e914680

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.evergreen/scripts/install-dependencies.sh

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,11 @@ set -eu
55
HERE=$(dirname ${BASH_SOURCE:-$0})
66
pushd "$(dirname "$(dirname $HERE)")" > /dev/null
77

8-
echo "before PATH=$PATH"
9-
108
# Source the env files to pick up common variables.
119
if [ -f $HERE/env.sh ]; then
1210
. $HERE/env.sh
1311
fi
1412

15-
echo "after PATH=$PATH"
16-
echo "PYMONGO_BIN_DIR=$PYMONGO_BIN_DIR"
17-
exit 1
18-
_BIN_DIR=${PYMONGO_BIN_DIR:-$HOME/.local/bin}
19-
export PATH="$PATH:${_BIN_DIR}"
20-
2113
# Helper function to pip install a dependency using a temporary python env.
2214
function _pip_install() {
2315
_HERE=$(dirname ${BASH_SOURCE:-$0})
@@ -42,9 +34,8 @@ function _pip_install() {
4234
echo "Installing $2 using pip... done."
4335
}
4436

45-
4637
# Ensure just is installed.
47-
if ! command -v just >/dev/null 2>&1; then
38+
if ! command -v just &>/dev/null; then
4839
# On most systems we can install directly.
4940
_TARGET=""
5041
if [ "Windows_NT" = "${OS:-}" ]; then
@@ -58,8 +49,8 @@ if ! command -v just >/dev/null 2>&1; then
5849
echo "Installing just... done."
5950
fi
6051

61-
# Install uv.
62-
if ! command -v uv >/dev/null 2>&1; then
52+
# Ensure uv is installed.
53+
if ! command -v uv &>/dev/null; then
6354
echo "Installing uv..."
6455
# On most systems we can install directly.
6556
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)