configure: Check for python the same way we check for sha256.

Avoids printing an extra line to stdout that users don't really
need to see.
This commit is contained in:
Augustin Cavalier 2019-03-03 16:50:29 -05:00
parent 74d9e19df9
commit 2b20049687

5
configure vendored
View File

@ -821,9 +821,10 @@ if [ $HOST_PLATFORM = "darwin" ]; then
HOST_EXTENDED_REGEX_SED="sed -E"
fi
if command -v "python3" ; then
# locate python
if python3 --version < /dev/null > /dev/null 2>&1; then
HOST_PYTHON="python3"
elif command -v "python" ; then
elif python --version < /dev/null > /dev/null 2>&1; then
HOST_PYTHON="python"
else
echo "a python interpreter is required"