From: Armin Ronacher Date: Mon, 28 May 2007 16:16:16 +0000 (+0200) Subject: [svn] updated Jinja setup.py for (hopefully for) win32 compatibility X-Git-Tag: 2.0rc1~315 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d15a4dc0552d15c95d83694c6d1964623e6db58e;p=jinja2.git [svn] updated Jinja setup.py for (hopefully for) win32 compatibility --HG-- branch : trunk --- diff --git a/setup.py b/setup.py index e45aa0d..b457c45 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import jinja import os +import sys import ez_setup ez_setup.use_setuptools() @@ -27,12 +28,19 @@ class optional_build_ext(build_ext): except CCompilerError, e: print '=' * 79 print 'INFORMATION' - print ' the speedup extension could not be compiled, jinja will' + print ' the speedup extension could not be compiled, Jinja will' print ' fall back to the native python classes.' print '=' * 79 - - - + except: + e = sys.exc_info()[1] + print '=' * 79 + print 'WARNING' + print ' could not compile optional speedup extension. This is' + print ' is not a real problem because Jinja provides a native' + print ' implementation of those classes but for best performance' + print ' you could try to reinstall Jinja after fixing this' + print ' problem: %s' % e + print '=' * 79 setup(