Skip to content
Myr

Disabled speedups by default.

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 77af572 · Browse files · 3 files+14 added−15 removed
This commit

State

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

Diff stats

3 files+14 added−15 removed

  • other:+14 added−15 removed

3 files+14 added−15 removed

modified:docs/intro.rst+13 added-12 removed
36 unmodified lines
37C-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::41release with the speedups you will get a compiler error. This however can be42circumvented by passing the ``--without-speedups`` command line argument to the43setup script::4444 $ python setup.py install --without-speedups45 $ python setup.py install --with-speedups4646For more details about that have a look at the :ref:`disable-speedups`47section below.47(As of Jinja 2.2, the speedups are disabled by default and can be enabled48with ``--with-speedups``. See :ref:`enable-speedups`)4950.. _ctypes: http://python.net/crew/theller/ctypes/5152
56 unmodified lines
109.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall110.. _pip: http://pypi.python.org/pypi/pip111.. _mercurial: http://www.selenic.com/mercurial/112112.. _disable-speedups:113.. _enable-speedups:114114Disable the speedups Module115Enaable the speedups Module116~~~~~~~~~~~~~~~~~~~~~~~~~~~117117By default Jinja2 will try to compile the speedups module. This of course118By default Jinja2 will not compile the speedups module. Enabling this119will fail if you don't have the Python headers or a working compiler. This120is often the case if you are installing Jinja2 from a windows machine.121121You can disable the speedups extension when installing using the122``--without-speedups`` flag::122You can enable the speedups extension when installing using the123``--with-speedups`` flag::124124 sudo python setup.py install --without-speedups125 sudo python setup.py install --with-speedups126127You can also pass this parameter to `pip`::128128 $ pip install --install-option='--without-speedups' Jinja2129 $ pip install --install-option='--with-speedups' Jinja2130131132Basic API Usage133---------------
23 unmodified lines
modified:.hgtags-1 removed
138b9483b8ce7c7e92b6f9d03e75017105c2d7965 2.0rc12344f2e5078d202663a08b50cf3a5f44da2a2cb54 2.03bac88fe8bc0e50b321a04eea038ed4542c43a62f 2.14ac0fc30f7b5ffca59769c5d9ed78f50596868af8 2.1.15351fcae4774bf280000cc4cf941ba5d3ce7d2839 2.2
modified:setup.py+1 added-2 removed
69 unmodified lines
70 'Topic :: Software Development :: Libraries :: Python Modules',71 'Topic :: Text Processing :: Markup :: HTML'72 ],73 packages=['jinja2'],74 data_files=data_files,74 features={75 'speedups': Feature("optional C speed-enhancements",77 standard=True,76 standard=False,77 ext_modules=[78 Extension('jinja2._speedups', ['jinja2/_speedups.c'])79 ]80 )
7 unmodified lines