From 9b5aa8d99eae07831407cf4a6ffda079c42e19bf Mon Sep 17 00:00:00 2001 From: legendecas Date: Tue, 20 Jul 2021 18:00:19 +0800 Subject: build: override python executable path on configure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39465 Fixes: https://github.com/nodejs/node/issues/39408 Fixes: https://github.com/nodejs/node/issues/39456 Reviewed-By: Zeyu Yang Reviewed-By: Tobias Nießen Reviewed-By: Michaël Zasso Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Joyee Cheung --- configure.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.py') diff --git a/configure.py b/configure.py index a4c4d26987..9327d6e5f5 100755 --- a/configure.py +++ b/configure.py @@ -2005,6 +2005,10 @@ else: if options.compile_commands_json: gyp_args += ['-f', 'compile_commands_json'] +# override the variable `python` defined in common.gypi +if bin_override is not None: + gyp_args += ['-Dpython=' + sys.executable] + # pass the leftover positional arguments to GYP gyp_args += args -- cgit v1.2.1