File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 55HERE=$( dirname ${BASH_SOURCE:- $0 } )
66HERE=" $( cd -- " $HERE " > /dev/null 2>&1 && pwd ) "
77ROOT=$( dirname " $( dirname $HERE ) " )
8- pushd $ROOT > /dev/null
98
109# Set up the uv environment if we're running on evergreen.
1110if [ " ${1:- } " == " evergreen" ]; then
@@ -37,7 +36,9 @@ if [ -z "${CI:-}" ]; then
3736 export PYMONGO_C_EXT_MUST_BUILD=1
3837 fi
3938
40- uv sync --quiet
39+ (
40+ cd $ROOT && uv sync --quiet
41+ )
4142
4243 if ! command -v pre-commit & > /dev/null; then
4344 uv tool install pre-commit
@@ -47,5 +48,3 @@ if [ -z "${CI:-}" ]; then
4748 uvx pre-commit install
4849 fi
4950fi
50-
51- popd > /dev/null
Original file line number Diff line number Diff line change 11#! /bin/bash
22# Set up the UV_PYTHON variable.
3- set -eux
3+ set -eu
44
55HERE=$( dirname ${BASH_SOURCE:- $0 } )
66HERE=" $( cd -- " $HERE " > /dev/null 2>&1 && pwd ) "
7- ROOT=$( dirname " $( dirname $HERE ) " )
8- pushd $ROOT > /dev/null
97
108# Source the env files to pick up common variables.
119if [ -f $HERE /env.sh ]; then
@@ -48,5 +46,3 @@ if [ -z "${UV_PYTHON:-}" ]; then
4846 echo " UV_PYTHON=$UV_PYTHON " >> $HERE /env.sh
4947 fi
5048fi
51-
52- popd > /dev/null
You can’t perform that action at this time.
0 commit comments