@@ -16,6 +16,15 @@ DRIVERS_TOOLS="$(dirname $PROJECT_DIRECTORY)/drivers-tools"
16
16
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
+ DRIVERS_TOOLS_BINARIES=" $DRIVERS_TOOLS /.bin"
20
+
21
+ # On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
22
+ if [ " ${CI:- } " == " true" ]; then
23
+ PYMONGO_BIN_DIR=${DRIVERS_TOOLS_BINARIES:- }
24
+ # We want to use a path that's already on PATH on spawn hosts.
25
+ else
26
+ PYMONGO_BIN_DIR=$HOME /cli_bin
27
+ fi
19
28
20
29
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
21
30
if [ " Windows_NT" = " ${OS:- } " ]; then # Magic variable in cygwin
@@ -24,6 +33,8 @@ if [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin
24
33
CARGO_HOME=$( cygpath -m $CARGO_HOME )
25
34
UV_TOOL_DIR=$( cygpath -m " $UV_TOOL_DIR " )
26
35
UV_CACHE_DIR=$( cygpath -m " $UV_CACHE_DIR " )
36
+ DRIVERS_TOOLS_BINARIES=$( cygpath -m " $DRIVERS_TOOLS_BINARIES " )
37
+ PYMONGO_BIN_DIR=$( cygpath -m " $PYMONGO_BIN_DIR " )
27
38
fi
28
39
29
40
SCRIPT_DIR=" $PROJECT_DIRECTORY /.evergreen/scripts"
36
47
37
48
export MONGO_ORCHESTRATION_HOME=" $DRIVERS_TOOLS /.evergreen/orchestration"
38
49
export MONGODB_BINARIES=" $DRIVERS_TOOLS /mongodb/bin"
39
- export DRIVERS_TOOLS_BINARIES=" $DRIVERS_TOOLS /.bin"
40
-
41
- # On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
42
- if [ " ${CI:- } " == " true" ]; then
43
- PYMONGO_BIN_DIR=${DRIVERS_TOOLS_BINARIES:- }
44
- # We want to use a path that's already on PATH on spawn hosts.
45
- else
46
- PYMONGO_BIN_DIR=$HOME /cli_bin
47
- fi
48
50
49
51
cat << EOT > "$SCRIPT_DIR "/env.sh
50
52
export PROJECT_DIRECTORY="$PROJECT_DIRECTORY "
0 commit comments