fixed parsing of Python version for Anaconda

metadata
Wenzel Jakob 2017-07-28 22:05:46 +02:00
parent 8410dc1bb1
commit 3409ec15d1
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ fi
if [ "$MITSUBA_PYVER" ]; then
pyver=$MITSUBA_PYVER
else
pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'`
pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])' | head -n1`
fi
if [[ "$(uname)" == 'Darwin' ]]; then