diff --git a/.evergreen/run-tests.sh b/.evergreen/run-tests.sh index 9987bd6945..58e3f42ac2 100755 --- a/.evergreen/run-tests.sh +++ b/.evergreen/run-tests.sh @@ -201,6 +201,12 @@ if [ -n "$COVERAGE" -a $PYTHON_IMPL = "CPython" ]; then fi fi +if $PYTHON -c 'import dns'; then + # Trying with/without --user to avoid: + # ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv. + $PYTHON -m pip install --upgrade --user 'dnspython<2.0.0' || $PYTHON -m pip install --upgrade 'dnspython<2.0.0' +fi + $PYTHON setup.py clean if [ -z "$GREEN_FRAMEWORK" ]; then if [ -z "$C_EXTENSIONS" -a $PYTHON_IMPL = "CPython" ]; then