Skip to content

Commit 1b1cd1c

Browse files
silverwindbnoordhuis
authored andcommitted
build: shorten configurate script print on stdout
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]>
1 parent d566ded commit 1b1cd1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import subprocess
88
import sys
99
import shutil
1010
import string
11+
import textwrap
1112

1213
CC = os.environ.get('CC', 'cc')
1314
CXX = os.environ.get('CXX', 'c++')
@@ -960,7 +961,7 @@ output = {
960961
'variables': variables,
961962
'target_defaults': output
962963
}
963-
pprint.pprint(output, indent=2)
964+
print textwrap.fill(str(output), 78)
964965

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

0 commit comments

Comments
 (0)