diff --git a/configure.py b/configure.py index 1e9ee8adf3cc68..002f84bd94756f 100755 --- a/configure.py +++ b/configure.py @@ -1925,6 +1925,7 @@ def make_bin_override(): # Forward OSS-Fuzz settings output['variables']['ossfuzz'] = b(options.ossfuzz) +output['variables']['python_exec'] = sys.executable # variables should be a root level element, # move everything else to target_defaults diff --git a/node.gyp b/node.gyp index 9c3ff581d64b59..4e063d0e01a1a4 100644 --- a/node.gyp +++ b/node.gyp @@ -27,6 +27,7 @@ 'node_lib_target_name%': 'libnode', 'node_intermediate_lib_type%': 'static_library', 'node_builtin_modules_path%': '', + 'python_exec': 'python', # We list the deps/ files out instead of globbing them in js2c.py since we # only include a subset of all the files under these directories. # The lengths of their file names combined should not exceed the @@ -790,7 +791,7 @@ 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/openssl.def'], 'process_outputs_as_sources': 1, 'action': [ - 'python', + '<(python_exec)', 'tools/mkssldef.py', '<@(mkssldef_flags)', '-o', @@ -816,7 +817,7 @@ '<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc', ], 'action': [ - 'python', + '<(python_exec)', 'tools/js2c.py', '--directory', 'lib',