mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
74d9e19df9
commit
2b20049687
5
configure
vendored
5
configure
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user