Skip to content
Myr

[svn] updated Jinja setup.py for (hopefully for) win32 compatibility

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent d34b4e3 · Browse files · 1 file+12 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−4 removed

  • other:+12 added−4 removed

1 file+12 added−4 removed

modified:setup.py+12 added-4 removed
1# -*- coding: utf-8 -*-2import jinja3import os4import sys5import ez_setup6ez_setup.use_setuptools()78from distutils.command.build_ext import build_ext
18 unmodified lines
27 build_ext.build_extension(self, ext)28 except CCompilerError, e:29 print '=' * 7930 print 'INFORMATION'30 print ' the speedup extension could not be compiled, jinja will'31 print ' the speedup extension could not be compiled, Jinja will'32 print ' fall back to the native python classes.'33 print '=' * 7934 except:35 e = sys.exc_info()[1]36 print '=' * 7937 print 'WARNING'38 print ' could not compile optional speedup extension. This is'39 print ' is not a real problem because Jinja provides a native'40 print ' implementation of those classes but for best performance'41 print ' you could try to reinstall Jinja after fixing this'42 print ' problem: %s' % e43 print '=' * 79444535363746setup(47 name = 'Jinja',48 version = '1.0',49 url = 'http://jinja.pocoo.org/',
41 unmodified lines