Re: [matplotlib-devel] Experiments in removing/replacing PyCXX

2012-12-01 Thread Nelle Varoquaux
One package (Pysam) that I use a lot relies on Cython, and requires users to install Cython before they can install Pysam itself. With Cython, is that always the case? Will all users need to install Cython? Or is it sufficient if only matplotlib developers install Cython? You can set

Re: [matplotlib-devel] Experiments in removing/replacing PyCXX

2012-12-01 Thread Julian Taylor
On 12/01/2012 02:32 AM, Benjamin Root wrote: Since when has numpy used Cython? I specifically remember a rather involved discussion thread on numpy-discussion about the pros-and-cons of including cython. Now, SciPy on the other hand, does utilize Cython in some spots IIRC, but does it in

Re: [matplotlib-devel] Experiments in removing/replacing PyCXX

2012-12-01 Thread Thomas Kluyver
Drat, re-sending on the list. On 1 December 2012 16:40, Thomas Kluyver tho...@kluyver.me.uk wrote: On 1 December 2012 14:44, Michiel de Hoon mjldeh...@yahoo.com wrote: At the same time, to minimize errors, we could use Cython to create the initial Python/C glue code, and then add the

Re: [matplotlib-devel] Fwd: Travis numpy build failures on Python 3.x

2012-12-01 Thread Michael Droettboom
Ok. I'll go ahead and put the workaround in our .travis.yml. Any active pull requests that we want to have good Travis results for will need to be rebased to get the workaround. Mike On 11/30/2012 06:20 PM, Damon McDougall wrote: Forwarding to list again... -- Forwarded message

Re: [matplotlib-devel] Experiments in removing/replacing PyCXX

2012-12-01 Thread Michael Droettboom
For the PNG extension specifically, it was creating callbacks that can be called from C and the setjmp magic that libpng requires. I think it's possible to do it, but I was surprised at how non-obvious those pieces of Cython were. I was really hoping by creating this experiment that a Cython

Re: [matplotlib-devel] Experiments in removing/replacing PyCXX

2012-12-01 Thread Michael Droettboom
For point of comparison, my branch now has a Cython and C++ version of the same thing. Here's the Cython version: https://github.com/mdboom/matplotlib/blob/no_cxx/src/_png.pyx Here's the C++ version: https://github.com/mdboom/matplotlib/blob/no_cxx/src/_png_wrap.cpp Some interesting things