From 842c8a9f7bea6b7d0810ca37ae6733bdb74422c5 Mon Sep 17 00:00:00 2001 From: himself65 Date: Wed, 7 Jul 2021 15:57:11 +0800 Subject: [PATCH] build: using `pymod_do_main` in `node.gyp` 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. --- node.gyp | 2 +- tools/gyp_node.py | 1 + tools/search_files.py | 9 +++------ 3 files changed, 5 insertions(+), 7 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': [ - '