Skip to content

Commit 2053460

Browse files
committed
cleanup
1 parent 025a0ff commit 2053460

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.evergreen/scripts/setup-dev-env.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ HERE=$(dirname ${BASH_SOURCE:-$0})
66
HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )"
77
ROOT=$(dirname "$(dirname $HERE)")
88

9-
# Set up the uv environment if indicated.
10-
if [ "${1:-}" == "ensure-uv" ]; then
11-
bash $HERE/setup-uv-python.sh
12-
fi
13-
149
# Source the env files to pick up common variables.
1510
if [ -f $HERE/env.sh ]; then
1611
. $HERE/env.sh
@@ -24,6 +19,9 @@ fi
2419
# Ensure dependencies are installed.
2520
bash $HERE/install-dependencies.sh
2621

22+
# Handle the value for UV_PYTHON.
23+
. $HERE/setup-uv-python.sh
24+
2725
# Only run the next part if not running on CI.
2826
if [ -z "${CI:-}" ]; then
2927
# Add the default install path to the path if needed.

.evergreen/scripts/setup-uv-python.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ if [ -f $HERE/test-env.sh ]; then
1818
. $HERE/test-env.sh
1919
fi
2020

21-
set -x
22-
2321
# Translate PYTHON_BINARY/PYTHON_VERSION to UV_PYTHON.
2422
if [ -z "${UV_PYTHON:-}" ]; then
2523
if [ -n "${PYTHON_BINARY:-}" ]; then
@@ -48,5 +46,5 @@ if [ -z "${UV_PYTHON:-}" ]; then
4846
_python="/opt/python/$_python/bin/python3"
4947
fi
5048
fi
51-
echo "export UV_PYTHON=$_python" >> $HERE/env.sh
49+
export UV_PYTHON="$_version"
5250
fi

0 commit comments

Comments
 (0)