Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2020-11-05 23:57:50 +0300
committerBeth Griggs <bgriggs@redhat.com>2020-12-15 23:15:22 +0300
commit304e26900105199aad97df1a0ad8c9333e5a180b (patch)
treecc5f8f1f8fa23f0b2d3006883bbeabf4140e7b4c /configure
parenta563f79d8051b17bf94722679d74215eb53ca46c (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-xconfigure1
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" "$@"