summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2010-06-22 21:56:38 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2010-06-22 21:56:38 +0200
commit5f853161c1041ccff04987e0fa736ebe2eb62e17 (patch)
treecf127204ce6466309654588b9dee8287ae0d3555
parent1ce02cddf6732e0192c62d0ddd6e5eeed88c98f8 (diff)
downloadmarkupsafe-5f853161c1041ccff04987e0fa736ebe2eb62e17.tar.gz
More 3.x fixes0.9.2
-rw-r--r--setup.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index 75f8d14..7fae5ea 100644
--- a/setup.py
+++ b/setup.py
@@ -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)