Skip to content
Myr

Updated documentation to reflect the new speedups installation behavior.

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 689a53b · Browse files · 1 file+33 added−1 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+33 added−1 removed

  • other:+33 added−1 removed

1 file+33 added−1 removed

modified:docs/intro.rst+33 added-1 removed
35 unmodified lines
36that can create python extensions should be installed for the debugger. If no37C-compiler is available and you are using Python 2.4 the `ctypes`_ module38should 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.4344For more details about that have a look at the :ref:`disable-speedups`45section below.4647.. _ctypes: http://python.net/crew/theller/ctypes/484950Installation
4 unmodified lines
5556As a Python egg (via easy_install)57~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5852You can install the most recent Jinja2 version using `easy_install`_::59You can install the most recent Jinja2 version using `easy_install`_ or `pip`_::6061 sudo easy_install Jinja262 sudo pip install Jinja26364This will install a Jinja2 egg in your Python installation's site-packages65directory.6667(If you are installing from the windows command line omit the `sudo` and make68sure to run the command as user with administrator rights)6970From the tarball release71~~~~~~~~~~~~~~~~~~~~~~~~~72731. Download the most recent tarball from the `download page`_
22 unmodified lines
96snapshot::9798 sudo easy_install Jinja2==dev99100Or the new `pip`_ command::101102 sudo pip install Jinja2==dev103104.. _download page: http://jinja.pocoo.org/2/download105.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools106.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall107.. _pip: http://pypi.python.org/pypi/pip108.. _mercurial: http://www.selenic.com/mercurial/109110.. _disable-speedups:111112Disable the speedups Module113~~~~~~~~~~~~~~~~~~~~~~~~~~~114115By default Jinja2 will try to compile the speedups module. This of course116will fail if you don't have the Python headers or a working compiler. This117is often the case if you are installing Jinja2 from a windows machine.118119You can disable the speedups extension when installing using the120``--without-speedups`` flag::121122 sudo python setup.py install --without-speedups123124You can also pass this parameter to `easy_install` or `pip`.125126127Basic API Usage128---------------129130This section gives you a brief introduction to the Python API for Jinja2
21 unmodified lines