Skip to content

Commit 57fea8b

Browse files
committed
PYTHON-3147 Fix pip install in MONGODB-AWS auth tests (#892)
(cherry picked from commit 671d1e6)
1 parent 1443d76 commit 57fea8b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.evergreen/run-mongodb-aws-ecs-test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ set -o xtrace
2323
if command -v virtualenv ; then
2424
VIRTUALENV=$(command -v virtualenv)
2525
else
26+
if ! python3 -m pip --version ; then
27+
echo "Installing pip..."
28+
apt-get update
29+
apt install python3-pip -y
30+
fi
2631
echo "Installing virtualenv..."
27-
apt install python3-pip -y
28-
pip3 install --user virtualenv
32+
python3 -m pip install --user virtualenv
2933
VIRTUALENV='python3 -m virtualenv'
3034
fi
3135

0 commit comments

Comments
 (0)