From 0d7f3c72e54ecd40288d5080fd7cbf8714bc49d8 Mon Sep 17 00:00:00 2001 From: Dean Holdren Date: Wed, 12 Jul 2017 11:37:10 -0400 Subject: [PATCH] use Python 2.x explicitly for node-gyp compat - If you have installed Python 3 and it is your default `python`, then installing some packages will fail, this is reproducible with: a) `python --version` returns 3.x b) attempt to install the `term3` package: `apm install term3` "Error: Python executable "..../apm/bin/python-interceptor.sh" is v3.6.1, which is not supported by gyp." - This change fixes the ambiguity by using the `python2` command --- bin/python-interceptor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/python-interceptor.sh b/bin/python-interceptor.sh index 7ce196556..12cc72f68 100755 --- a/bin/python-interceptor.sh +++ b/bin/python-interceptor.sh @@ -34,9 +34,9 @@ case $1 in ARGS+=("--format=safemake.py") fi - exec python "${ARGS[@]}" + exec python2 "${ARGS[@]}" ;; *) - exec python "$@" + exec python2 "$@" ;; esac