diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2010-06-22 21:56:38 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2010-06-22 21:56:38 +0200 |
commit | 5f853161c1041ccff04987e0fa736ebe2eb62e17 (patch) | |
tree | cf127204ce6466309654588b9dee8287ae0d3555 | |
parent | 1ce02cddf6732e0192c62d0ddd6e5eeed88c98f8 (diff) | |
download | markupsafe-5f853161c1041ccff04987e0fa736ebe2eb62e17.tar.gz |
More 3.x fixes0.9.2
-rw-r--r-- | setup.py | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -50,6 +50,10 @@ class ve_build_ext(build_ext): raise BuildFailed() +def echo(msg=''): + sys.stdout.write(msg + '\n') + + readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() @@ -94,15 +98,15 @@ except BuildFailed: LINE = '=' * 74 BUILD_EXT_WARNING = 'WARNING: The C extension could not be compiled, speedups are not enabled.' - print LINE - print BUILD_EXT_WARNING - print 'Failure information, if any, is above.' - print 'Retrying the build without the C extension now.' - print + echo(LINE) + echo(BUILD_EXT_WARNING) + echo('Failure information, if any, is above.') + echo('Retrying the build without the C extension now.') + echo() run_setup(False) - print LINE - print BUILD_EXT_WARNING - print 'Plain-Python installation succeeded.' - print LINE + echo(LINE) + echo(BUILD_EXT_WARNING) + echo('Plain-Python installation succeeded.') + echo(LINE) |