Using travis environment variable to check Python version.

This commit is contained in:
Patrick Shriwise 2018-10-07 17:21:48 -05:00
parent 755d0a5a5f
commit b8a845073b

View file

@ -26,8 +26,8 @@ python tools/ci/travis-install.py
# Install Python API in editable mode
pip install -e .[test]
a=$(dpkg --compare-versions $(python --version | cut -d" " -f 2) lt 3.7.0)
if [ $a -eq 0 ]; then
# conditionally install vtk
if [ $TRAVIS_PYTHON_VERSION -ne 3.7 ]; then
pip install -e .[vtk]
fi