Skip to content

Commit

Permalink
python: clean-up detection
Browse files Browse the repository at this point in the history
Try everything until Python is found.

PR-URL: #1582
Reviewed-By: Rod Vagg <rod@vagg.org>
  • Loading branch information
joaocgreis authored and rvagg committed Apr 24, 2019
1 parent 49ab79d commit 43031fa
Show file tree
Hide file tree
Showing 3 changed files with 434 additions and 302 deletions.
8 changes: 2 additions & 6 deletions bin/node-gyp.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,8 @@ function run () {
prog.commands[command.name](command.args, function (err) {
if (err) {
log.error(command.name + ' error')
if (err.noPython) {
log.error(err.message)
} else {
log.error('stack', err.stack)
errorMessage()
}
log.error('stack', err.stack)
errorMessage()
log.error('not ok')
return process.exit(1)
}
Expand Down
Loading

0 comments on commit 43031fa

Please sign in to comment.