Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion bindings/python/.evergreen/integ-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,18 @@ else
fi
export PYMONGOCRYPT_LIB

createvirtualenv $PYTHON .venv
# PyMongo master requires Python 3.11+ (PYTHON-6138), but the newest
# interpreter on some distros is the MongoDB toolchain Python 3.10 (e.g.
# rhel-82-arm64). Provision a modern interpreter with uv in that case.
if "$PYTHON" -c 'import sys; sys.exit(0 if sys.version_info >= (3, 11) else 1)'; then
createvirtualenv $PYTHON .venv
else
. "${DRIVERS_TOOLS}/.evergreen/ensure-uv.sh"
ensure_uv
uv python install 3.13
uv venv --seed --python 3.13 .venv
. .venv/bin/activate
fi
pip install -e .
pip install uv
pushd $PYMONGO_DIR
Expand Down
Loading