@@ -17,19 +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
20
- # On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
21
- if [ " ${CI:- } " == " true" ]; then
22
- echo " 1, 2${CI:- } 2"
23
- PYMONGO_BIN_DIR=${DRIVERS_TOOLS_BINARIES:- }
24
- elif [ " Windows_NT" = " ${OS:- } " ]; then
25
- echo " 2"
26
- PYMONGO_BIN_DIR=$HOME /cli_bin
27
- else
28
- echo " 3"
29
- PYMONGO_BIN_DIR=" "
30
- fi
31
- echo " HI: $PYMONGO_BIN_DIR , $CI "
32
- exit 1
20
+
33
21
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
34
22
if [ " Windows_NT" = " ${OS:- } " ]; then # Magic variable in cygwin
35
23
DRIVERS_TOOLS=$( cygpath -m $DRIVERS_TOOLS )
51
39
MONGO_ORCHESTRATION_HOME=" $DRIVERS_TOOLS /.evergreen/orchestration"
52
40
DRIVERS_TOOLS_BINARIES=" $DRIVERS_TOOLS /.bin"
53
41
MONGODB_BINARIES=" $DRIVERS_TOOLS /mongodb/bin"
54
- PATH=" $MONGODB_BINARIES :$DRIVERS_TOOLS_BINARIES :$PYMONGO_BIN_DIR :$PATH "
55
42
56
43
cat << EOT > "$SCRIPT_DIR "/env.sh
57
44
export PROJECT_DIRECTORY="$PROJECT_DIRECTORY "
@@ -83,7 +70,7 @@ export PYMONGO_BIN_DIR="$PYMONGO_BIN_DIR"
83
70
export UV_TOOL_DIR="$UV_TOOL_DIR "
84
71
export UV_CACHE_DIR="$UV_CACHE_DIR "
85
72
export UV_TOOL_BIN_DIR="$DRIVERS_TOOLS_BINARIES "
86
- export PATH="$PATH "
73
+ export PATH="$MONGODB_BINARIES : $DRIVERS_TOOLS_BINARIES : $ PATH "
87
74
# shellcheck disable=SC2154
88
75
export PROJECT="${project:- mongo-python-driver} "
89
76
export PIP_QUIET=1
0 commit comments