From 689a53b080d15a4f42023328ff0217949a5841c1 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 23 Nov 2008 13:09:18 +0100 Subject: [PATCH] Removed optional speedups extension hack. --HG-- branch : trunk --- setup.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/setup.py b/setup.py index 5e9c1d8..bc18c32 100644 --- a/setup.py +++ b/setup.py @@ -76,29 +76,6 @@ def get_terminal_width(): return 80 -class optional_build_ext(build_ext): - """This class allows C extension building to fail.""" - - def run(self): - try: - build_ext.run(self) - except DistutilsPlatformError: - self._unavailable() - - def build_extension(self, ext): - try: - build_ext.build_extension(self, ext) - except CCompilerError, x: - self._unavailable() - - def _unavailable(self): - width = get_terminal_width() - print '*' * width - print """WARNING: -An optional C extension could not be compiled, speedups will not be -available.""" - - setup( name='Jinja2', version=VERSION, -- 2.26.2