@@ -17,6 +17,7 @@ CARGO_HOME=${CARGO_HOME:-${DRIVERS_TOOLS}/.cargo}
1717UV_TOOL_DIR=$PROJECT_DIRECTORY /.local/uv/tools
1818UV_CACHE_DIR=$PROJECT_DIRECTORY /.local/uv/cache
1919DRIVERS_TOOLS_BINARIES=" $DRIVERS_TOOLS /.bin"
20+ MONGODB_BINARIES=" $DRIVERS_TOOLS /mongodb/bin"
2021
2122# On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
2223if [ " ${CI:- } " == " true" ]; then
2627 PYMONGO_BIN_DIR=$HOME /cli_bin
2728fi
2829
30+ PATH_EXT=" $MONGODB_BINARIES :$DRIVERS_TOOLS_BINARIES :$PYMONGO_BIN_DIR :\$ PATH"
31+
2932# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
3033if [ " Windows_NT" = " ${OS:- } " ]; then # Magic variable in cygwin
3134 DRIVERS_TOOLS=$( cygpath -m $DRIVERS_TOOLS )
@@ -34,6 +37,7 @@ if [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin
3437 UV_TOOL_DIR=$( cygpath -m " $UV_TOOL_DIR " )
3538 UV_CACHE_DIR=$( cygpath -m " $UV_CACHE_DIR " )
3639 DRIVERS_TOOLS_BINARIES=$( cygpath -m " $DRIVERS_TOOLS_BINARIES " )
40+ MONGODB_BINARIES=$( cygpath -m " $MONGODB_BINARIES " )
3741 PYMONGO_BIN_DIR=$( cygpath -m " $PYMONGO_BIN_DIR " )
3842fi
3943
@@ -77,7 +81,7 @@ export UV_TOOL_DIR="$UV_TOOL_DIR"
7781export UV_CACHE_DIR="$UV_CACHE_DIR "
7882export UV_TOOL_BIN_DIR="$DRIVERS_TOOLS_BINARIES "
7983export PYMONGO_BIN_DIR="$PYMONGO_BIN_DIR "
80- export PATH="$MONGODB_BINARIES : $DRIVERS_TOOLS_BINARIES : $PYMONGO_BIN_DIR : $PATH "
84+ export PATH="$PATH_EXT "
8185# shellcheck disable=SC2154
8286export PROJECT="${project:- mongo-python-driver} "
8387export PIP_QUIET=1
0 commit comments