@@ -17,6 +17,7 @@ CARGO_HOME=${CARGO_HOME:-${DRIVERS_TOOLS}/.cargo}
17
17
UV_TOOL_DIR=$PROJECT_DIRECTORY /.local/uv/tools
18
18
UV_CACHE_DIR=$PROJECT_DIRECTORY /.local/uv/cache
19
19
DRIVERS_TOOLS_BINARIES=" $DRIVERS_TOOLS /.bin"
20
+ MONGODB_BINARIES=" $DRIVERS_TOOLS /mongodb/bin"
20
21
21
22
# On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
22
23
if [ " ${CI:- } " == " true" ]; then
26
27
PYMONGO_BIN_DIR=$HOME /cli_bin
27
28
fi
28
29
30
+ PATH_EXT=" $MONGODB_BINARIES :$DRIVERS_TOOLS_BINARIES :$PYMONGO_BIN_DIR :\$ PATH"
31
+
29
32
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
30
33
if [ " Windows_NT" = " ${OS:- } " ]; then # Magic variable in cygwin
31
34
DRIVERS_TOOLS=$( cygpath -m $DRIVERS_TOOLS )
@@ -34,6 +37,7 @@ if [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin
34
37
UV_TOOL_DIR=$( cygpath -m " $UV_TOOL_DIR " )
35
38
UV_CACHE_DIR=$( cygpath -m " $UV_CACHE_DIR " )
36
39
DRIVERS_TOOLS_BINARIES=$( cygpath -m " $DRIVERS_TOOLS_BINARIES " )
40
+ MONGODB_BINARIES=$( cygpath -m " $MONGODB_BINARIES " )
37
41
PYMONGO_BIN_DIR=$( cygpath -m " $PYMONGO_BIN_DIR " )
38
42
fi
39
43
@@ -77,7 +81,7 @@ export UV_TOOL_DIR="$UV_TOOL_DIR"
77
81
export UV_CACHE_DIR="$UV_CACHE_DIR "
78
82
export UV_TOOL_BIN_DIR="$DRIVERS_TOOLS_BINARIES "
79
83
export PYMONGO_BIN_DIR="$PYMONGO_BIN_DIR "
80
- export PATH="$MONGODB_BINARIES : $DRIVERS_TOOLS_BINARIES : $PYMONGO_BIN_DIR : $PATH "
84
+ export PATH="$PATH_EXT "
81
85
# shellcheck disable=SC2154
82
86
export PROJECT="${project:- mongo-python-driver} "
83
87
export PIP_QUIET=1
0 commit comments