diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2009-09-13 00:30:06 -0700 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2009-09-13 00:30:06 -0700 |
commit | 9ebc45718c2dbcd8296460f6780a3840e9ca575c (patch) | |
tree | f18f476b342cca5a9c852d3b82194dd26be8c8ad /docs/intro.rst | |
parent | 77af572096897c961557ea04b702ecacf53f6e94 (diff) | |
download | jinja2-9ebc45718c2dbcd8296460f6780a3840e9ca575c.tar.gz |
Disabled speedups by default.2.2
--HG--
branch : trunk
Diffstat (limited to 'docs/intro.rst')
-rw-r--r-- | docs/intro.rst | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/docs/intro.rst b/docs/intro.rst index a412740..b68b04a 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -38,13 +38,14 @@ C-compiler is available and you are using Python 2.4 the `ctypes`_ module should be installed. If you don't have a working C compiler and you are trying to install the source -release you will get a compiler error. This however can be circumvented by -passing the ``--without-speedups`` command line argument to the setup script:: +release with the speedups you will get a compiler error. This however can be +circumvented by passing the ``--without-speedups`` command line argument to the +setup script:: - $ python setup.py install --without-speedups + $ python setup.py install --with-speedups -For more details about that have a look at the :ref:`disable-speedups` -section below. +(As of Jinja 2.2, the speedups are disabled by default and can be enabled +with ``--with-speedups``. See :ref:`enable-speedups`) .. _ctypes: http://python.net/crew/theller/ctypes/ @@ -109,23 +110,23 @@ Or the new `pip`_ command:: .. _pip: http://pypi.python.org/pypi/pip .. _mercurial: http://www.selenic.com/mercurial/ -.. _disable-speedups: +.. _enable-speedups: -Disable the speedups Module +Enaable the speedups Module ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -By default Jinja2 will try to compile the speedups module. This of course +By default Jinja2 will not compile the speedups module. Enabling this will fail if you don't have the Python headers or a working compiler. This is often the case if you are installing Jinja2 from a windows machine. -You can disable the speedups extension when installing using the -``--without-speedups`` flag:: +You can enable the speedups extension when installing using the +``--with-speedups`` flag:: - sudo python setup.py install --without-speedups + sudo python setup.py install --with-speedups You can also pass this parameter to `pip`:: - $ pip install --install-option='--without-speedups' Jinja2 + $ pip install --install-option='--with-speedups' Jinja2 Basic API Usage |