fixed parsing of Python version for Anaconda
parent
8410dc1bb1
commit
3409ec15d1
|
@ -27,7 +27,7 @@ fi
|
||||||
if [ "$MITSUBA_PYVER" ]; then
|
if [ "$MITSUBA_PYVER" ]; then
|
||||||
pyver=$MITSUBA_PYVER
|
pyver=$MITSUBA_PYVER
|
||||||
else
|
else
|
||||||
pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'`
|
pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])' | head -n1`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(uname)" == 'Darwin' ]]; then
|
if [[ "$(uname)" == 'Darwin' ]]; then
|
||||||
|
|
Loading…
Reference in New Issue