Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 7f88b4d

Browse files
bradleythughesaddaleax
authored andcommitted
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: nodejs/node#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>
1 parent 01ca7af commit 7f88b4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure

+3-1
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,9 @@ def get_bin_override():
13571357
# sys.executable. This directory will be prefixed to the PATH, so that
13581358
# other tools that shell out to `python` will use the appropriate python
13591359

1360-
if os.path.realpath(which('python')) == os.path.realpath(sys.executable):
1360+
which_python = which('python')
1361+
if (which_python and
1362+
os.path.realpath(which_python) == os.path.realpath(sys.executable)):
13611363
return
13621364

13631365
bin_override = os.path.abspath('out/tools/bin')

0 commit comments

Comments
 (0)