@@ -17,7 +17,8 @@ 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
20
-
20
+ echo " HI: $PYMONGO_BIN_DIR , $CI "
21
+ exit 1
21
22
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
22
23
if [ " Windows_NT" = " ${OS:- } " ]; then # Magic variable in cygwin
23
24
DRIVERS_TOOLS=$( cygpath -m $DRIVERS_TOOLS )
@@ -40,6 +41,17 @@ MONGO_ORCHESTRATION_HOME="$DRIVERS_TOOLS/.evergreen/orchestration"
40
41
DRIVERS_TOOLS_BINARIES=" $DRIVERS_TOOLS /.bin"
41
42
MONGODB_BINARIES=" $DRIVERS_TOOLS /mongodb/bin"
42
43
44
+ # On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
45
+ if [ " ${CI:- } " == " true" ]; then
46
+ PYMONGO_BIN_DIR=${DRIVERS_TOOLS_BINARIES:- }
47
+ # We want to use a path that's already on PATH on spawn hosts.
48
+ else
49
+ PYMONGO_BIN_DIR=$HOME /cli_bin
50
+ fi
51
+
52
+
53
+ PATH=" $MONGODB_BINARIES :$DRIVERS_TOOLS_BINARIES :$PYMONGO_BIN_DIR :$PATH "
54
+
43
55
cat << EOT > "$SCRIPT_DIR "/env.sh
44
56
export PROJECT_DIRECTORY="$PROJECT_DIRECTORY "
45
57
export CURRENT_VERSION="$CURRENT_VERSION "
@@ -70,7 +82,7 @@ export PYMONGO_BIN_DIR="$PYMONGO_BIN_DIR"
70
82
export UV_TOOL_DIR="$UV_TOOL_DIR "
71
83
export UV_CACHE_DIR="$UV_CACHE_DIR "
72
84
export UV_TOOL_BIN_DIR="$DRIVERS_TOOLS_BINARIES "
73
- export PATH="$MONGODB_BINARIES : $DRIVERS_TOOLS_BINARIES : $ PATH "
85
+ export PATH="$PATH "
74
86
# shellcheck disable=SC2154
75
87
export PROJECT="${project:- mongo-python-driver} "
76
88
export PIP_QUIET=1
0 commit comments