From 8be83ff9df8b9c209db5733a91698af9baf91dd6 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 10 Oct 2018 10:24:19 -0500 Subject: [PATCH] Correcting vtk install condition. --- tools/ci/travis-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/ci/travis-install.sh b/tools/ci/travis-install.sh index cc707d861b..670f28f33b 100755 --- a/tools/ci/travis-install.sh +++ b/tools/ci/travis-install.sh @@ -23,12 +23,12 @@ fi # Build and install OpenMC executable python tools/ci/travis-install.py -# Install Python API in editable mode -pip install -e .[test] - -# conditionally install vtk -if [ $TRAVIS_PYTHON_VERSION -ne 3.7 ]; then - pip install -e .[vtk] +if [[ $TRAVIS_PYTHON_VERSION == "3.7" ]]; then + # Install Python API in editable mode + pip install -e .[test] +else + # Conditionally install vtk + pip install -e .[test,vtk] fi # For uploading to coveralls