Commit c47ea338 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Conda build-and-test script: Avoid pytest that's too new for Py2

parent 0d629e68
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -10,7 +10,13 @@ PY_EXE=python

# Using pip instead of conda here avoids ridiculous uninstall chains
# like these:https://gitlab.tiker.net/inducer/pyopencl/-/jobs/61543

PYTHON_VER=$($PY_EXE -c 'import sys; print(".".join(str(s) for s in sys.version_info[:2]))')
if [[ "${PY_EXE}" == 2* ]]; then
  ${PY_EXE} -mpip install "pytest<5"
else
  ${PY_EXE} -mpip install pytest
fi

conda list