From 1b1cd1c3f8e21b34a8e1355e545057a661acaa15 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: https://github.com/iojs/io.js/pull/483 Reviewed-By: Ben Noordhuis Reviewed-By: Saúl Ibarra Corretgé --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6320f3c..7cae800 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') -- 2.7.4