setup.py
This file
Path
setup.py
89 lines · 2.9 KiB · Python
Last changed by
[svn] made jinja platform depending and adedd manifest for the built documentation. Improved loader documentationArmin Ronacherbefore adoption2165ce6
History of this fileTake it
[svn] some small updates to make jinja performing betterArmin Ronacherbefore adoptionde478f6
line 1why, one step back1# -*- coding: utf-8 -*-[svn] reworked the jinja escaping system, removed getattr concatenating and documented internal jinja functions.Armin Ronacherbefore adoptionae16fd0
line 2why, one step back2import jinja[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 3why, one step back3import os[svn] updated Jinja setup.py for (hopefully for) win32 compatibilityArmin Ronacherbefore adoptiond15a4dc
line 4why, one step back4import sys[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
lines 5–6why, one step back5import ez_setup6ez_setup.use_setuptools()[svn] added c implementation of the jinja context class.Armin Ronacherbefore adoptionee2c18e
lines 7–10why, one step back78from distutils.command.build_ext import build_ext9from distutils.errors import CCompilerError10from setuptools import setup, Extension, Feature[svn] reworked the jinja escaping system, removed getattr concatenating and documented internal jinja functions.Armin Ronacherbefore adoptionae16fd0
line 11why, one step back11from inspect import getdoc[svn] some small updates to make jinja performing betterArmin Ronacherbefore adoptionde478f6
line 12why, one step back12[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 13why, one step back13[svn] again jinja setup.py update. works nowArmin Ronacherbefore adoptione21ced2
lines 14–22why, one step back14def list_files(path):15 for fn in os.listdir(path):16 if fn.startswith('.'):17 continue18 fn = os.path.join(path, fn)19 if os.path.isfile(fn):20 yield fn2122[svn] added c implementation of the jinja context class.Armin Ronacherbefore adoptionee2c18e
lines 23–30why, one step back23class optional_build_ext(build_ext):2425 def build_extension(self, ext):26 try:27 build_ext.build_extension(self, ext)28 except CCompilerError, e:29 print '=' * 7930 print 'INFORMATION'[svn] updated Jinja setup.py for (hopefully for) win32 compatibilityArmin Ronacherbefore adoptiond15a4dc
line 31why, one step back31 print ' the speedup extension could not be compiled, Jinja will'[svn] added c implementation of the jinja context class.Armin Ronacherbefore adoptionee2c18e
lines 32–33why, one step back32 print ' fall back to the native python classes.'33 print '=' * 79[svn] updated Jinja setup.py for (hopefully for) win32 compatibilityArmin Ronacherbefore adoptiond15a4dc
lines 34–43why, one step back34 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 '=' * 79[svn] added c implementation of the jinja context class.Armin Ronacherbefore adoptionee2c18e
lines 44–45why, one step back4445[svn] some small updates to make jinja performing betterArmin Ronacherbefore adoptionde478f6
lines 46–47why, one step back46setup(47 name = 'Jinja',[svn] added some more jinja unittestsArmin Ronacherbefore adoptionecc051b
line 48why, one step back48 version = '1.1',[svn] doc update, setup.py update, added turbogears pluginArmin Ronacherbefore adoption8ebf1f9
line 49why, one step back49 url = 'http://jinja.pocoo.org/',[svn] some small updates to make jinja performing betterArmin Ronacherbefore adoptionde478f6
lines 50–52why, one step back50 license = 'BSD',51 author = 'Armin Ronacher',52 author_email = 'armin.ronacher@active-4.com',[svn] FILTERS!!111!!!111oneoneoneArmin Ronacherbefore adoption2b76513
lines 53–54why, one step back53 description = 'A small but fast and easy to use stand-alone template '54 'engine written in pure python.',[svn] reworked the jinja escaping system, removed getattr concatenating and documented internal jinja functions.Armin Ronacherbefore adoptionae16fd0
line 55why, one step back55 long_description = getdoc(jinja),[svn] again jinja setup.py update. works nowArmin Ronacherbefore adoptione21ced2
lines 56–58why, one step back56 # jinja is egg safe. But because we distribute the documentation57 # in form of html and txt files it's a better idea to extract the files58 zip_safe = False,[svn] some small updates to make jinja performing betterArmin Ronacherbefore adoptionde478f6
lines 59–65why, one step back59 classifiers = [60 'Development Status :: 5 - Production/Stable',61 'Environment :: Web Environment',62 'Intended Audience :: Developers',63 'License :: OSI Approved :: BSD License',64 'Operating System :: OS Independent',65 'Programming Language :: Python',[svn] doc update, setup.py update, added turbogears pluginArmin Ronacherbefore adoption8ebf1f9
lines 66–70why, one step back66 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',67 'Topic :: Software Development :: Libraries :: Python Modules',68 'Topic :: Text Processing :: Markup :: HTML'69 ],70 keywords = ['python.templating.engines'],[svn] FILTERS!!111!!!111oneoneoneArmin Ronacherbefore adoption2b76513
line 71why, one step back71 packages = ['jinja', 'jinja.translators'],[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 72why, one step back72 data_files = [[svn] added doc notes to the installation instructionsArmin Ronacherbefore adoption72bb257
lines 73–74why, one step back73 ('docs', list(list_files('docs/build'))),74 ('docs/txt', list(list_files('docs/src')))[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 75why, one step back75 ],[svn] various updates i haven't checked in so far (see the diff of the changelog) and fixed critical bug reported by Alexey MelchakovArmin Ronacherbefore adoption2158091
lines 76–79why, one step back76 entry_points='''77 [python.templating.engines]78 jinja = jinja.plugin:BuffetPlugin79 ''',[svn] added c implementation of the jinja context class.Armin Ronacherbefore adoptionee2c18e
lines 80–88why, one step back80 extras_require = {'plugin': ['setuptools>=0.6a2']},81 features = {'speedups': Feature(82 'optional C-speed enhancements',83 standard = True,84 ext_modules = [85 Extension('jinja._speedups', ['jinja/_speedups.c'])86 ]87 )},88 cmdclass = {'build_ext': optional_build_ext}[svn] some small updates to make jinja performing betterArmin Ronacherbefore adoptionde478f6
line 89why, one step back89)