Removed optional speedups extension hack.
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 23 Nov 2008 12:09:18 +0000 (13:09 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 23 Nov 2008 12:09:18 +0000 (13:09 +0100)
--HG--
branch : trunk

setup.py

index 5e9c1d8e2da85e8c80f3627116173ed67f08a36b..bc18c3245a74a9c2f7b54f21a898aab7a70d5c9a 100644 (file)
--- 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,