From ab5dc654dd5c7ff3d2272f8ccf47fa02b2f52d80 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Sun, 18 Jan 2015 18:48:21 +0100 Subject: [PATCH] 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. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6320f3c6f913a7..7cae80079be265 100755 --- a/configure +++ b/configure @@ -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++') @@ -960,7 +961,7 @@ output = { 'variables': variables, 'target_defaults': output } -pprint.pprint(output, indent=2) +print textwrap.fill(str(output), 78) write('config.gypi', do_not_edit + pprint.pformat(output, indent=2) + '\n')