<div dir="ltr"><div dir="ltr">Thanks! Although looks like Tempita is inactive, the site link is broken, and the last release was in 2013. It looks like the most current fork which adds py3 compat is <a href="https://github.com/gjhiggins/tempita">https://github.com/gjhiggins/tempita</a> - is that what you are using? Any opposition to Jinja2? Jinja2 seems to work and it's already a requirement of SciPy via Sphinx, and it looks very similar to Tempita.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 31, 2018 at 1:04 AM Evgeni Burovski <<a href="mailto:evgeny.burovskiy@gmail.com">evgeny.burovskiy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Maybe better use Tempita, which we use already. For instance,<br>
<br>
<a href="https://github.com/scipy/scipy/blob/master/scipy/linalg/_decomp_update.pyx.in" rel="noreferrer" target="_blank">https://github.com/scipy/scipy/blob/master/scipy/linalg/_decomp_update.pyx.in</a><br>
On Fri, Aug 31, 2018 at 10:58 AM Mark Alexander Mikofski<br>
<<a href="mailto:mikofski@berkeley.edu" target="_blank">mikofski@berkeley.edu</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
> I would like to use Jinja2 templates to generate the Cython pyx and pxd files necessary for the Cython Optimize Zeros API proposed in #8431, maybe in a follow up PR<br>
><br>
> <a href="https://github.com/scipy/scipy/pull/8431" rel="noreferrer" target="_blank">https://github.com/scipy/scipy/pull/8431</a><br>
><br>
> Does anyone have any experience with code generation in SciPy? Is it best to generate the files offline and then commit them to the repository, or is it better to add some scripting to either setup.py or to the CI yaml config files?<br>
><br>
> I put something together in a branch in my scipy fork, and it recreates the existing code verbatim. See the templates folder and _generate_zeros_type.py script.<br>
><br>
> <a href="https://github.com/mikofski/scipy/tree/cython_optimize_generate_code/scipy/optimize/cython_optimize" rel="noreferrer" target="_blank">https://github.com/mikofski/scipy/tree/cython_optimize_generate_code/scipy/optimize/cython_optimize</a><br>
><br>
> Any comments would be greatly appreciated.<br>
><br>
> thanks!<br>
> Mark<br>
> --<br>
> Mark Mikofski, PhD (2005)<br>
> Fiat Lux<br>
> _______________________________________________<br>
> SciPy-Dev mailing list<br>
> <a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><span style="font-size:12.8px">Mark Mikofski, PhD (2005)</span><br></div><div><span style="font-size:12.8px"><i>Fiat Lux</i></span><br></div></div></div></div>