Skip to content

Commit 43031fa

Browse files
joaocgreisrvagg
authored andcommitted
python: clean-up detection
Try everything until Python is found. PR-URL: #1582 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 49ab79d commit 43031fa

File tree

3 files changed

+434
-302
lines changed

3 files changed

+434
-302
lines changed

bin/node-gyp.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,8 @@ function run () {
7979
prog.commands[command.name](command.args, function (err) {
8080
if (err) {
8181
log.error(command.name + ' error')
82-
if (err.noPython) {
83-
log.error(err.message)
84-
} else {
85-
log.error('stack', err.stack)
86-
errorMessage()
87-
}
82+
log.error('stack', err.stack)
83+
errorMessage()
8884
log.error('not ok')
8985
return process.exit(1)
9086
}

0 commit comments

Comments
 (0)