File tree Expand file tree Collapse file tree 9 files changed +12
-50
lines changed Expand file tree Collapse file tree 9 files changed +12
-50
lines changed Original file line number Diff line number Diff line change 2
2
set -eu
3
3
4
4
. .evergreen/scripts/setup-dev-env.sh
5
- just " $@ "
5
+ ${JUST_BINARY :- just} " $@ "
Original file line number Diff line number Diff line change 25
25
exit 1
26
26
fi
27
27
28
- . $ROOT /.evergreen/utils.sh
29
- UV=$( get_uv)
28
+ UV=${UV_BINARY:- uv}
30
29
31
30
# List the packages.
32
31
$UV sync ${UV_ARGS} --reinstall
Original file line number Diff line number Diff line change @@ -91,23 +91,5 @@ DRIVERS_TOOLS: "$DRIVERS_TOOLS"
91
91
PROJECT_DIRECTORY: "$PROJECT_DIRECTORY "
92
92
EOT
93
93
94
- # If the toolchain is available, symlink binaries to the bin dir. This has to be done
95
- # after drivers-tools is cloned, since we might be using its binary dir.
96
- _bin_path=" "
97
- if [ " Windows_NT" == " ${OS:- } " ]; then
98
- _bin_path=" /cygdrive/c/Python/Current/Scripts"
99
- elif [ " $( uname -s) " != " Darwin" ]; then
100
- _bin_path=" /Library/Frameworks/Python.Framework/Versions/Current/bin"
101
- else
102
- _bin_path=" /opt/python/Current/bin"
103
- fi
104
- if [ -d " ${_bin_path} " ]; then
105
- _suffix=" "
106
- if [ " Windows_NT" == " ${OS:- } " ]; then
107
- _suffix=" .exe"
108
- fi
109
- mkdir -p $PYMONGO_BIN_DIR
110
- ln -s ${_bin_path} /just${_suffix} $PYMONGO_BIN_DIR /just${_suffix}
111
- ln -s ${_bin_path} /uv${_suffix} $PYMONGO_BIN_DIR /uv${_suffix}
112
- ln -s ${_bin_path} /uvx${_suffix} $PYMONGO_BIN_DIR /uvx${_suffix}
113
- fi
94
+ # Handle the binary dependencies.
95
+ bash $SCRIPT_DIR /install-dependencies.sh
Original file line number Diff line number Diff line change @@ -82,4 +82,8 @@ if ! command -v uv >/dev/null 2>&1; then
82
82
echo " Installing uv... done."
83
83
fi
84
84
85
+ # Write the binary locations to the env file.
86
+ echo " UV_BINARY=$( which uv) " >> $HERE /env.sh
87
+ echo " JUST_BINARY=$( which uv) " >> $HERE /env.sh
88
+
85
89
popd > /dev/null
Original file line number Diff line number Diff line change @@ -10,7 +10,5 @@ if [ -f $HERE/env.sh ]; then
10
10
source $HERE /env.sh
11
11
fi
12
12
13
- . $ROOT /.evergreen/utils.sh
14
- UV=$( get_uv)
15
-
13
+ UV=${UV_BINARY:- uv}
16
14
$UV run $HERE /run_server.py " $@ "
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ if [ -f $HERE/test-env.sh ]; then
17
17
fi
18
18
19
19
# Ensure dependencies are installed.
20
- bash $HERE /install-dependencies.sh
20
+ export JUST
21
+ JUST=$( $HERE /install-dependencies.sh)
21
22
22
23
# Get the appropriate UV_PYTHON.
23
24
. $ROOT /.evergreen/utils.sh
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ echo "Setting up system..."
8
8
bash .evergreen/scripts/configure-env.sh
9
9
source .evergreen/scripts/env.sh
10
10
bash $DRIVERS_TOOLS /.evergreen/setup.sh
11
- bash .evergreen/scripts/install-dependencies.sh
12
11
popd
13
12
14
13
# Enable core dumps if enabled on the machine
Original file line number Diff line number Diff line change @@ -20,7 +20,5 @@ if [ -f $SCRIPT_DIR/env.sh ]; then
20
20
source $SCRIPT_DIR /env.sh
21
21
fi
22
22
23
- . $ROOT /.evergreen/utils.sh
24
- UV=$( get_uv)
25
-
23
+ UV=${UV_BINARY:- uv}
26
24
$UV run $SCRIPT_DIR /setup_tests.py " $@ "
Original file line number Diff line number Diff line change @@ -138,22 +138,3 @@ get_python_binary() {
138
138
return 1
139
139
fi
140
140
}
141
-
142
-
143
- # Get the appropriate uv binary.
144
- get_uv () {
145
- # Try to use the binaries in the toolchain if available.
146
- if [ -f " /cygdrive/c/Python/Current/Scripts/uv.exe" ]; then
147
- echo " /cygdrive/c/Python/Current/Scripts/uv.exe"
148
- return
149
- fi
150
- if [ -f " /Library/Frameworks/Python.Framework/Versions/Current/bin/uv" ]; then
151
- echo " /Library/Frameworks/Python.Framework/Versions/Current/bin/uv"
152
- return
153
- fi
154
- if [ -f " /opt/python/Current/bin" ]; then
155
- echo " /opt/python/Current/bin/uv"
156
- return
157
- fi
158
- echo " $( which uv) "
159
- }
You can’t perform that action at this time.
0 commit comments