Skip to content
Myr

(codename Kong, released on September 12th 2009)

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 efcc0e5 · Browse files · 4 files+11 added−43 removed
This commit

State

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

Diff stats

4 files+11 added−43 removed

  • other:+11 added−43 removed

4 files+11 added−43 removed

modified:docs/intro.rst+8 added-4 removed
37 unmodified lines
38should be installed.3940If you don't have a working C compiler and you are trying to install the source41release you will get a compiler error. This however can be circumvented by42passing the ``--without-speedups`` command line argument to the setup script.42passing the ``--without-speedups`` command line argument to the setup script::4344 $ python setup.py install --without-speedups4546For more details about that have a look at the :ref:`disable-speedups`47section below.4849.. _ctypes: http://python.net/crew/theller/ctypes/
9 unmodified lines
59~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~6061You can install the most recent Jinja2 version using `easy_install`_ or `pip`_::6261 sudo easy_install Jinja262 sudo pip install Jinja263 easy_install Jinja264 pip install Jinja26566This will install a Jinja2 egg in your Python installation's site-packages67directory.68
53 unmodified lines
122``--without-speedups`` flag::123124 sudo python setup.py install --without-speedups125124You can also pass this parameter to `easy_install` or `pip`.126You can also pass this parameter to `pip`::127128 $ pip install --install-option='--without-speedups' Jinja2129130131Basic API Usage132---------------133134This section gives you a brief introduction to the Python API for Jinja2
21 unmodified lines
modified:CHANGES+1 added-1 removed
1 unmodified line
2================34Version 2.25-----------6(codename unknown, release date yet unknown)6(codename Kong, released on September 12th 2009)78- Include statements can now be marked with ``ignore missing`` to skip9 non existing templates.10- Priority of `not` raised. It's now possible to write `not foo in bar`
104 unmodified lines
modified:setup.cfg-6 removed
2 unmodified lines
3tag_date = true45[aliases]6release = egg_info -RDb ''78[nosetests]9#verbosity=210detailed-errors=111cover-package=nose12where=tests
modified:setup.py+2 added-32 removed
45 unmodified lines
46from distutils.command.build_ext import build_ext47from distutils.errors import CCompilerError, DistutilsPlatformError484950#: don't change the variable and assignment. the fabfile parses this51#: file to get the version for deployment from it.52VERSION = '2.2'535455data_files = []56documentation_path = 'docs/_build/html'57if os.path.exists(documentation_path):58 documentation_files = []59 for fn in os.listdir(documentation_path):60 if not fn.startswith('.'):61 fn = os.path.join(documentation_path, fn)62 if os.path.isfile(fn):63 documentation_files.append(fn)64 data_files.append(('docs', documentation_files))656667def get_terminal_width():68 """Return the current terminal dimensions."""69 try:70 from struct import pack, unpack71 from fcntl import ioctl72 from termios import TIOCGWINSZ73 s = pack('HHHH', 0, 0, 0, 0)74 return unpack('HHHH', ioctl(sys.stdout.fileno(), TIOCGWINSZ, s))[1]75 except:76 return 80777850setup(51 name='Jinja2',81 version=VERSION,52 version='2.2',53 url='http://jinja.pocoo.org/',54 license='BSD',55 author='Armin Ronacher',56 author_email='armin.ronacher@active-4.com',57 description='A small but fast and easy to use stand-alone template '58 'engine written in pure python.',59 long_description=__doc__,89 # jinja is egg safe. But because we distribute the documentation90 # in form of html and txt files it's a better idea to extract the files60 # jinja is egg safe. But we hate eggs61 zip_safe=False,62 classifiers=[63 'Development Status :: 5 - Production/Stable',64 'Environment :: Web Environment',
24 unmodified lines