mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Using travis environment variable to check Python version.
This commit is contained in:
parent
755d0a5a5f
commit
b8a845073b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue