macos-setup: test whether /usr/bin/python3 works, not python3 in general.

We want to check whether *Apple* provides Python 3, not whether there's
a Python 3 installed; if there is no Apple-provided Python 3, but
there's somebody else's Python 3 installed, leave it alone, don't
uninstall it.
This commit is contained in:
Guy Harris 2021-07-29 14:50:10 -07:00
parent cc34e1c406
commit 2fd29240c8
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ OPUS_VERSION=1.3.1
# Is /usr/bin/python3 a working version of Python? It may be, as it
# might be a wrapper that runs the Python 3 that's part of Xcode.
#
if python3 --version >/dev/null 2>&1
if /usr/bin/python3 --version >/dev/null 2>&1
then
#
# Yes - don't bother installing Python 3 from elsewhere