Skip to content

Commit 3f9d724

Browse files
hefangshievanlucas
authored andcommitted
test: pass python path to node-gyp
node-gyp rebuild should use the same python interpreter as in Makefile rather than let node-gyp guess the python path by itself. PR-URL: #6646 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 0c62bd1 commit 3f9d724

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ test-valgrind: all
129129

130130
test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE)
131131
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
132+
--python="$(PYTHON)" \
132133
--directory="$(shell pwd)/test/gc/node_modules/weak" \
133134
--nodedir="$(shell pwd)"
134135

@@ -151,6 +152,7 @@ test/addons/.buildstamp: $(ADDONS_BINDING_GYPS) \
151152
# embedded addons have been generated from the documentation.
152153
for dirname in test/addons/*/; do \
153154
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
155+
--python="$(PYTHON)" \
154156
--directory="$$PWD/$$dirname" \
155157
--nodedir="$$PWD" || exit 1 ; \
156158
done

0 commit comments

Comments
 (0)