Disabled speedups by default. 2.2
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 13 Sep 2009 07:30:06 +0000 (00:30 -0700)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 13 Sep 2009 07:30:06 +0000 (00:30 -0700)
--HG--
branch : trunk

.hgtags
docs/intro.rst
setup.py

diff --git a/.hgtags b/.hgtags
index f48ce5b4043f444d16a27c7b7174ae82578513ae..5c4e3a5f6d13d81a12d9956d61ec948121ce07ca 100644 (file)
--- a/.hgtags
+++ b/.hgtags
@@ -2,4 +2,3 @@
 344f2e5078d202663a08b50cf3a5f44da2a2cb54 2.0
 bac88fe8bc0e50b321a04eea038ed4542c43a62f 2.1
 ac0fc30f7b5ffca59769c5d9ed78f50596868af8 2.1.1
-351fcae4774bf280000cc4cf941ba5d3ce7d2839 2.2
index a412740b5faea925160b2a0b4d60a1191fa22e37..b68b04ae18c20e9bfcd5e00ce8a23eab28c9eedf 100644 (file)
@@ -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
index 2284f2ebdd881ab63a8cc0735c82a2bc5164d83e..fa266f136409391ae7a09eec1518a05543500b3f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -71,10 +71,9 @@ setup(
         'Topic :: Text Processing :: Markup :: HTML'
     ],
     packages=['jinja2'],
-    data_files=data_files,
     features={
         'speedups': Feature("optional C speed-enhancements",
-            standard=True,
+            standard=False,
             ext_modules=[
                 Extension('jinja2._speedups', ['jinja2/_speedups.c'])
             ]