[SciPy-Dev] Cython code generation with Jinja2 templates

Charles R Harris charlesr.harris at gmail.com
Fri Aug 31 17:22:44 EDT 2018


On Fri, Aug 31, 2018 at 3:00 PM Robert Kern <robert.kern at gmail.com> wrote:

> On Fri, Aug 31, 2018 at 12:47 PM Pauli Virtanen <pav at iki.fi> wrote:
>
>> Tempita is mature, and has worked fine for us. The "official" version
>> at https://pypi.org/project/Tempita/ is Python 3 compatible (via 2to3).
>> Jinja2 is much more heavily geared towards HTML generation, and for the
>> use here I don't see it having much advantages.
>>
>
> While we're on the subject, we might want to vendorize it. Right now,
> we're preferentially using Cython's vendorized version, but they have
> informed us that they consider that an implementation detail that external
> users (like us) should not rely on.
>
>

It is already in vendorized in NumPy, see `tools/npy_tempita` and works for
both Python 2 and Python 3.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180831/d49e4cab/attachment.html>


More information about the SciPy-Dev mailing list