#!/bin/bash
set -ex

# Install NJOY 2016
./tools/ci/travis-install-njoy.sh

# Install DAGMC if needed
if [[ $DAGMC = 'y' ]]; then
    ./tools/ci/travis-install-dagmc.sh
fi

# Upgrade pip, pytest, numpy before doing anything else
pip install --upgrade pip
pip install --upgrade pytest
pip install --upgrade numpy

# Install mpi4py for MPI configurations
if [[ $MPI == 'y' ]]; then
    pip install --no-binary=mpi4py mpi4py
fi

# Build and install OpenMC executable
python tools/ci/travis-install.py

# Install Python API in editable mode
pip install -e .[test,vtk]

# For uploading to coveralls
pip install coveralls

#!/bin/bash
set -ex

# Install NJOY 2016
./tools/ci/travis-install-njoy.sh

# Install DAGMC if needed
if [[ $DAGMC = 'y' ]]; then
    ./tools/ci/travis-install-dagmc.sh
fi

# Upgrade pip, pytest, numpy before doing anything else
pip install --upgrade pip
pip install --upgrade pytest
pip install --upgrade numpy

# Install mpi4py for MPI configurations
if [[ $MPI == 'y' ]]; then
    pip install --no-binary=mpi4py mpi4py
fi

# Build and install OpenMC executable
python tools/ci/travis-install.py

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
pip install coveralls

--- 
+++ 
@@ -22,8 +22,13 @@
 # Build and install OpenMC executable
 python tools/ci/travis-install.py
 
-# Install Python API in editable mode
-pip install -e .[test,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
 pip install coveralls
Install vtk for Python 3.7 too
