<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Jinja2 Final aka Jinjavitus Released</title>
	<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/</link>
	<description>Armin Ronacher thinking</description>
	<pubDate>Fri, 21 Nov 2008 11:44:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Sproaticus</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-10584</link>
		<author>Sproaticus</author>
		<pubDate>Tue, 19 Aug 2008 14:40:11 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-10584</guid>
		<description>I'm using the setup.py straight from the 2.0 tarball.  (I wonder if having make.exe and other dev tools in my PATH isn't confusing distutils?  I have several C compilers, just not the VC++ 7.1. that ActiveState used for their Python build.)

Anyway.  On the theory that merely referencing a c sourcefile is causing distutils to look for a compiled binary, I got it to work last night by modifying the setup.py to ignore _speedups.c:

    features={
        'speedups': Feature("optional C speed-enhancements",
            standard=True,
            ext_modules=[
    #            Extension('jinja2._speedups', ['jinja2/_speedups.c'])  # changed here
            ]
        )
    },

...followed by "setup.py --without-speedups install"</description>
		<content:encoded><![CDATA[<p>I&#8217;m using the setup.py straight from the 2.0 tarball.  (I wonder if having make.exe and other dev tools in my PATH isn&#8217;t confusing distutils?  I have several C compilers, just not the VC++ 7.1. that ActiveState used for their Python build.)</p>
<p>Anyway.  On the theory that merely referencing a c sourcefile is causing distutils to look for a compiled binary, I got it to work last night by modifying the setup.py to ignore _speedups.c:</p>
<p>    features={<br />
        &#8217;speedups&#8217;: Feature(&#8221;optional C speed-enhancements&#8221;,<br />
            standard=True,<br />
            ext_modules=[<br />
    #            Extension(&#8217;jinja2._speedups&#8217;, [&#8217;jinja2/_speedups.c&#8217;])  # changed here<br />
            ]<br />
        )<br />
    },</p>
<p>&#8230;followed by &#8220;setup.py &#8211;without-speedups install&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armin Ronacher</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-10572</link>
		<author>Armin Ronacher</author>
		<pubDate>Tue, 19 Aug 2008 12:16:21 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-10572</guid>
		<description>@8: I'll look into that. But if you are using the setup.py directly that should work :-/</description>
		<content:encoded><![CDATA[<p>@8: I&#8217;ll look into that. But if you are using the setup.py directly that should work :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sproaticus</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-10547</link>
		<author>Sproaticus</author>
		<pubDate>Tue, 19 Aug 2008 01:30:09 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-10547</guid>
		<description>I'm having fun playing with this on my Ubuntu host.  But on Win32 (sans VC++ compiler), when I try "setup.py --without-speedups install", I get this at the end...

...
creating build\bdist.win32\egg\EGG-INFO
removing Jinja2.egg-info\native_libs.txt
copying Jinja2.egg-info\PKG-INFO -&#62; build\bdist.win32\egg\EGG-INFO
copying Jinja2.egg-info\SOURCES.txt -&#62; build\bdist.win32\egg\EGG-INFO
copying Jinja2.egg-info\dependency_links.txt -&#62; build\bdist.win32\egg\EGG-INFO
copying Jinja2.egg-info\entry_points.txt -&#62; build\bdist.win32\egg\EGG-INFO
error: can't copy 'Jinja2.egg-info\native_libs.txt': doesn't exist or not a regular file

It looks like it's forgetting to automatically rebuild the file "native_libs.txt".  Perhaps something amiss with how bdist_egg is called?  Sadly, I lack the distutils-fu necessary to get past this point.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having fun playing with this on my Ubuntu host.  But on Win32 (sans VC++ compiler), when I try &#8220;setup.py &#8211;without-speedups install&#8221;, I get this at the end&#8230;</p>
<p>&#8230;<br />
creating build\bdist.win32\egg\EGG-INFO<br />
removing Jinja2.egg-info\native_libs.txt<br />
copying Jinja2.egg-info\PKG-INFO -&gt; build\bdist.win32\egg\EGG-INFO<br />
copying Jinja2.egg-info\SOURCES.txt -&gt; build\bdist.win32\egg\EGG-INFO<br />
copying Jinja2.egg-info\dependency_links.txt -&gt; build\bdist.win32\egg\EGG-INFO<br />
copying Jinja2.egg-info\entry_points.txt -&gt; build\bdist.win32\egg\EGG-INFO<br />
error: can&#8217;t copy &#8216;Jinja2.egg-info\native_libs.txt&#8217;: doesn&#8217;t exist or not a regular file</p>
<p>It looks like it&#8217;s forgetting to automatically rebuild the file &#8220;native_libs.txt&#8221;.  Perhaps something amiss with how bdist_egg is called?  Sadly, I lack the distutils-fu necessary to get past this point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armin Ronacher</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9424</link>
		<author>Armin Ronacher</author>
		<pubDate>Tue, 22 Jul 2008 08:09:44 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9424</guid>
		<description>@5: I haven't had the time yet to create windows eggs for it.  I'll try to do that before going on vacation.  That should "fix" the problem. As workaround you can explicitly disable the extension with "python setup.py --without-speedups".

@6: No, that sounds like a reasonable result.  There is actually a "real worldish" benchmark of the raw template engine throughput in the rwbench folder.  There the results are even more diverting but the template is biased.</description>
		<content:encoded><![CDATA[<p>@5: I haven&#8217;t had the time yet to create windows eggs for it.  I&#8217;ll try to do that before going on vacation.  That should &#8220;fix&#8221; the problem. As workaround you can explicitly disable the extension with &#8220;python setup.py &#8211;without-speedups&#8221;.</p>
<p>@6: No, that sounds like a reasonable result.  There is actually a &#8220;real worldish&#8221; benchmark of the raw template engine throughput in the rwbench folder.  There the results are even more diverting but the template is biased.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasil</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9409</link>
		<author>Vasil</author>
		<pubDate>Mon, 21 Jul 2008 19:28:06 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9409</guid>
		<description>Just ran some profiling on Jinja2 against Genshi. Turns out it's way faster for use with twisted.web, at least 4 times faster on 60 parallel requests. Is this possible or did I do something wrong in my test?
I had both engines load from filesystem and had auto_reload set to False on both.</description>
		<content:encoded><![CDATA[<p>Just ran some profiling on Jinja2 against Genshi. Turns out it&#8217;s way faster for use with twisted.web, at least 4 times faster on 60 parallel requests. Is this possible or did I do something wrong in my test?<br />
I had both engines load from filesystem and had auto_reload set to False on both.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9395</link>
		<author>Jon</author>
		<pubDate>Mon, 21 Jul 2008 13:08:15 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9395</guid>
		<description>Great stuff...however, I got the following when trying to update to the latest egg on my WinXP box...probably due to _speedups.c

easy_install -U Jinja2
...
Downloading http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.0.tar.gz#md5=19fe3ee10ee94a6003c53374112f2403
Processing Jinja2-2.0.tar.gz
Running Jinja2-2.0\setup.py -q bdist_egg --dist-dir c:\docume~1\jon~1\locals~1\temp\easy_install-whi05h\Jinja2-2.0\egg-dist-tmp-ndsr6y
warning: no files found matching 'Makefile'
warning: no files found matching 'ez_setup.py'
warning: no previously-included files matching '*' found under directory 'docs\_build\doctrees'
error: Setup script exited with error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.</description>
		<content:encoded><![CDATA[<p>Great stuff&#8230;however, I got the following when trying to update to the latest egg on my WinXP box&#8230;probably due to _speedups.c</p>
<p>easy_install -U Jinja2<br />
&#8230;<br />
Downloading <a href="http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.0.tar.gz#md5=19fe3ee10ee94a6003c53374112f2403" rel="nofollow">http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.0.tar.gz#md5=19fe3ee10ee94a6003c53374112f2403</a><br />
Processing Jinja2-2.0.tar.gz<br />
Running Jinja2-2.0\setup.py -q bdist_egg &#8211;dist-dir c:\docume~1\jon~1\locals~1\temp\easy_install-whi05h\Jinja2-2.0\egg-dist-tmp-ndsr6y<br />
warning: no files found matching &#8216;Makefile&#8217;<br />
warning: no files found matching &#8216;ez_setup.py&#8217;<br />
warning: no previously-included files matching &#8216;*&#8217; found under directory &#8216;docs\_build\doctrees&#8217;<br />
error: Setup script exited with error: Python was built with Visual Studio 2003;<br />
extensions must be built with a compiler than can generate compatible binaries.<br />
Visual Studio 2003 was not found on this system. If you have Cygwin installed,<br />
you can try compiling with MingW32, by passing &#8220;-c mingw32&#8243; to setup.py.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Grebs</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9306</link>
		<author>Christopher Grebs</author>
		<pubDate>Sat, 19 Jul 2008 10:58:49 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9306</guid>
		<description>Thanks much Armin!

But I think that the django-inspired features in jinja2 are still less than in jinja1 so why call it django-inspired? :)

Anyway, keep up that good work!

Regards,
Christopher</description>
		<content:encoded><![CDATA[<p>Thanks much Armin!</p>
<p>But I think that the django-inspired features in jinja2 are still less than in jinja1 so why call it django-inspired? :)</p>
<p>Anyway, keep up that good work!</p>
<p>Regards,<br />
Christopher</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Hack</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9295</link>
		<author>Christoph Hack</author>
		<pubDate>Sat, 19 Jul 2008 07:02:12 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9295</guid>
		<description>I think you forgot about the main feature/improvement in your blog post, which was initially also the reason for rewriting. It's a bit faster now and will enable better optimations later :)

But anyway, many thanks for releasing, we already upgraded. And nice holiday.

Regards,
Christoph</description>
		<content:encoded><![CDATA[<p>I think you forgot about the main feature/improvement in your blog post, which was initially also the reason for rewriting. It&#8217;s a bit faster now and will enable better optimations later :)</p>
<p>But anyway, many thanks for releasing, we already upgraded. And nice holiday.</p>
<p>Regards,<br />
Christoph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9225</link>
		<author>James</author>
		<pubDate>Fri, 18 Jul 2008 04:44:14 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9225</guid>
		<description>This is going to be great template to use!</description>
		<content:encoded><![CDATA[<p>This is going to be great template to use!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9214</link>
		<author>Jared</author>
		<pubDate>Fri, 18 Jul 2008 00:02:19 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/07/17/jinja2-final-aka-jinjavitus-released/#comment-9214</guid>
		<description>Awesome work Armin. Jinja's a damn fine beast.</description>
		<content:encoded><![CDATA[<p>Awesome work Armin. Jinja&#8217;s a damn fine beast.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
