From 4b2344f19619907b0e74469146a7612fed5cf4a3 Mon Sep 17 00:00:00 2001 From: himself65 Date: Thu, 8 Jul 2021 00:19:00 +0800 Subject: [PATCH] build: using `pymod_do_main` in `node.gyp` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GYP uses the system path when parsing node.gyp; However, if system python is different from our gyp runtime python, like '2.7', gyp would crash. Co-authored-by: Michaƫl Zasso --- node.gyp | 2 +- tools/gyp_node.py | 1 + tools/search_files.py | 12 +++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/node.gyp b/node.gyp index 691ce22ff3d664..540029e2b75fb0 100644 --- a/node.gyp +++ b/node.gyp @@ -33,7 +33,7 @@ # Windows command length limit or there would be an error. # See https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation 'library_files': [ - '