From c5af747da9f817571dce2db5b6675cc0cac36faa Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 12 Jul 2013 04:08:29 -0700 Subject: [PATCH] Monkey patch to try and make print flush properly. --- release.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/release.py b/release.py index dfb72ab91..8965759fe 100644 --- a/release.py +++ b/release.py @@ -6,7 +6,7 @@ from optparse import OptionParser from urllib2 import HTTPError from contextlib import closing from datetime import datetime - +sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) forge_dir = os.path.dirname(os.path.abspath(__file__)) from forge import reset_logger, load_version, zip_folder, zip_create, inject_version, build_forge_dev from changelog import make_changelog diff --git a/setup.py b/setup.py index f4556d915..89389e4a2 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import os, os.path, sys, zipfile import shutil, glob, fnmatch, subprocess from pprint import pformat from optparse import OptionParser - +sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) forge_dir = os.path.dirname(os.path.abspath(__file__)) from forge import apply_forge_patches