summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBradley T. Hughes <bradleythughes@fastmail.fm>2017-10-16 12:33:47 +0000
committerRefael Ackermann <refack@gmail.com>2017-10-22 14:46:58 -0400
commit02a52670b832b17b90365aa42b5620c20fe357f6 (patch)
treea3540523de6aba1c0866dcce4b3ac5fce0e39f22 /configure
parent838eca26566134af60116ebc9694e860d7310f0d (diff)
downloadandroid-node-v8-02a52670b832b17b90365aa42b5620c20fe357f6.tar.gz
android-node-v8-02a52670b832b17b90365aa42b5620c20fe357f6.tar.bz2
android-node-v8-02a52670b832b17b90365aa42b5620c20fe357f6.zip
build: use bin override if no `python` in PATH
On systems with no "python" in the PATH, e.g. FreeBSD, we should always create a python symlink in get_bin_override(). PR-URL: https://github.com/nodejs/node/pull/16241 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index ac51638da8..1e4cb4b3dd 100755
--- a/configure
+++ b/configure
@@ -1357,7 +1357,9 @@ def get_bin_override():
# sys.executable. This directory will be prefixed to the PATH, so that
# other tools that shell out to `python` will use the appropriate python
- if os.path.realpath(which('python')) == os.path.realpath(sys.executable):
+ which_python = which('python')
+ if (which_python and
+ os.path.realpath(which_python) == os.path.realpath(sys.executable)):
return
bin_override = os.path.abspath('out/tools/bin')