Skip to content

Commit

Permalink
build: shorten configurate script print on stdout
Browse files Browse the repository at this point in the history
Reduces the previously pretty-printed configuration dictionary to a
single line wrapped at 78 characters. This makes warning messages which
appear before this print more visible to the user.

PR-URL: #483
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
  • Loading branch information
silverwind authored and bnoordhuis committed Jan 18, 2015
1 parent d566ded commit 1b1cd1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import subprocess
import sys
import shutil
import string
import textwrap

CC = os.environ.get('CC', 'cc')
CXX = os.environ.get('CXX', 'c++')
Expand Down Expand Up @@ -960,7 +961,7 @@ output = {
'variables': variables,
'target_defaults': output
}
pprint.pprint(output, indent=2)
print textwrap.fill(str(output), 78)

This comment has been minimized.

Copy link
@ralphtheninja

ralphtheninja Jan 24, 2015

Contributor

Looks a lot better with the previous pprint. If it should be printed at all.


write('config.gypi', do_not_edit +
pprint.pformat(output, indent=2) + '\n')
Expand Down

0 comments on commit 1b1cd1c

Please sign in to comment.