Skip to content

Commit

Permalink
[svn] updated Jinja setup.py for (hopefully for) win32 compatibility
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
mitsuhiko committed May 28, 2007
1 parent d34b4e3 commit d15a4dc
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions setup.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import jinja
import os
import sys
import ez_setup
ez_setup.use_setuptools()

Expand All @@ -27,12 +28,19 @@ def build_extension(self, 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(
Expand Down

0 comments on commit d15a4dc

Please sign in to comment.