diff options
author | Ole André Vadla Ravnås <oleavr@gmail.com> | 2020-11-05 23:57:50 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-11-18 21:49:24 +0300 |
commit | fb24f6e68828864463cc2f41b03c3da3412be364 (patch) | |
tree | bb0cf42fc5a2e931781ae60798f5632780f59d86 /configure | |
parent | 0ed9961f1239a3d9f79334dc8b7f0a3ba6c6fee2 (diff) |
build: try “python3” as a last resort for 3.x
So that Xcode's Python 3 gets picked up.
PR-URL: https://github.com/nodejs/node/pull/35983
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure index 07581d9c5a4..ca2cd8aa9e6 100755 --- a/configure +++ b/configure @@ -10,6 +10,7 @@ command -v python3.8 >/dev/null && exec python3.8 "$0" "$@" command -v python3.7 >/dev/null && exec python3.7 "$0" "$@" command -v python3.6 >/dev/null && exec python3.6 "$0" "$@" command -v python3.5 >/dev/null && exec python3.5 "$0" "$@" +command -v python3 >/dev/null && exec python3 "$0" "$@" command -v python2.7 >/dev/null && exec python2.7 "$0" "$@" exec python "$0" "$@" ''' "$0" "$@" |