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
Provenance
- Commit
9ebc457- Tree
f18f476- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
77af572
3 files changed+14 added−15 removed
modified:docs/intro.rst+13 added-12 removed
36 unmodified lines37 C-compiler is available and you are using Python 2.4 the `ctypes`_ module38 should be installed.39 40 If you don't have a working C compiler and you are trying to install the source41-release you will get a compiler error. This however can be circumvented by42-passing the ``--without-speedups`` command line argument to the setup script::41+release with the speedups you will get a compiler error. This however can be42+circumvented by passing the ``--without-speedups`` command line argument to the43+setup script::44 44- $ python setup.py install --without-speedups45+ $ python setup.py install --with-speedups46 46-For more details about that have a look at the :ref:`disable-speedups`47-section below.47+(As of Jinja 2.2, the speedups are disabled by default and can be enabled48+with ``--with-speedups``. See :ref:`enable-speedups`)49 50 .. _ctypes: http://python.net/crew/theller/ctypes/51 52 56 unmodified lines109 .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall110 .. _pip: http://pypi.python.org/pypi/pip111 .. _mercurial: http://www.selenic.com/mercurial/112 112-.. _disable-speedups:113+.. _enable-speedups:114 114-Disable the speedups Module115+Enaable the speedups Module116 ~~~~~~~~~~~~~~~~~~~~~~~~~~~117 117-By default Jinja2 will try to compile the speedups module. This of course118+By default Jinja2 will not compile the speedups module. Enabling this119 will fail if you don't have the Python headers or a working compiler. This120 is often the case if you are installing Jinja2 from a windows machine.121 121-You can disable the speedups extension when installing using the122-``--without-speedups`` flag::122+You can enable the speedups extension when installing using the123+``--with-speedups`` flag::124 124- sudo python setup.py install --without-speedups125+ sudo python setup.py install --with-speedups126 127 You can also pass this parameter to `pip`::128 128- $ pip install --install-option='--without-speedups' Jinja2129+ $ pip install --install-option='--with-speedups' Jinja2130 131 132 Basic API Usage133 ---------------23 unmodified linesmodified:.hgtags-1 removed
1 38b9483b8ce7c7e92b6f9d03e75017105c2d7965 2.0rc12 344f2e5078d202663a08b50cf3a5f44da2a2cb54 2.03 bac88fe8bc0e50b321a04eea038ed4542c43a62f 2.14 ac0fc30f7b5ffca59769c5d9ed78f50596868af8 2.1.15-351fcae4774bf280000cc4cf941ba5d3ce7d2839 2.2modified:setup.py+1 added-2 removed
69 unmodified lines70 '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