<p dir="ltr">On my phone so excuse the terse answer.</p>
<p dir="ltr">Use the numpy calls if likely OK</p>
<p dir="ltr">Work of of master or v2.x </p>
<p dir="ltr">Look at our travis.yml file for how to run the tests.</p>
<p dir="ltr">Python tests.py</p>
<p dir="ltr">Tom</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 2, 2016, 09:54 Matti Picus <<a href="mailto:matti.picus@gmail.com">matti.picus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am working off of 1.5.1, should I be using HEAD? Would any of the data<br>
access API's like np.array.__array_interface__ be acceptable?<br>
I did these two calls<br>
<br>
<pypy> setup.py build<br>
<br>
<pypy> setup.py nosetests --verbosity=10<br>
<br>
and got a crash in matplotlib.tests.test_artist.test_remove<br>
<br>
Is there a better way to run tests?<br>
<br>
Thanks<br>
Matti<br>
<br>
On 02/09/16 16:32, Thomas Caswell wrote:<br>
> Which branch are you working off of?  Matthew Brett recently did a<br>
> whole bunch of work over-hauling how that linking happens.<br>
><br>
> We currently have a blanket ban on cffi so that mpl will run in<br>
> locked-down environments, but I would be open to being convinced using<br>
> it in a localized way inside of the tk code.<br>
><br>
> How are you running the test suite?  It is odd that you are hitting tk<br>
> at all.<br>
><br>
> Tom<br>
><br>
> On Fri, Sep 2, 2016 at 9:24 AM Matti Picus <<a href="mailto:matti.picus@gmail.com" target="_blank">matti.picus@gmail.com</a><br>
> <mailto:<a href="mailto:matti.picus@gmail.com" target="_blank">matti.picus@gmail.com</a>>> wrote:<br>
><br>
>     The pypy C-API progress, where we can basically run all of numpy (on a<br>
>     HEAD version numpy + nightly version of pypy).<br>
><br>
>     That means I will start to look at passing the matplotlib test suite.<br>
><br>
>     My first try segfaults, due to the tkagg backend blit function which<br>
>     calls into tk via id(data) and id(bbox_array).<br>
><br>
>     That of course will not work on PyPy since the address of a random<br>
>     python object does not reflect anything usable in C.<br>
><br>
>     So my question, as someone who is new to your codebase, is how to<br>
>     rewrite this using cffi or the standard C-API without impacting<br>
>     performance?<br>
><br>
>     Matti<br>
><br>
>     _______________________________________________<br>
>     Matplotlib-devel mailing list<br>
>     <a href="mailto:Matplotlib-devel@python.org" target="_blank">Matplotlib-devel@python.org</a> <mailto:<a href="mailto:Matplotlib-devel@python.org" target="_blank">Matplotlib-devel@python.org</a>><br>
>     <a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br>
><br>
<br>
</blockquote></div>