[Matplotlib-devel] getting pypy to play nice with matplotlib

Thomas Caswell tcaswell at gmail.com
Fri Sep 2 09:32:27 EDT 2016


Which branch are you working off of?  Matthew Brett recently did a whole
bunch of work over-hauling how that linking happens.

We currently have a blanket ban on cffi so that mpl will run in locked-down
environments, but I would be open to being convinced using it in a
localized way inside of the tk code.

How are you running the test suite?  It is odd that you are hitting tk at
all.

Tom

On Fri, Sep 2, 2016 at 9:24 AM Matti Picus <matti.picus at gmail.com> wrote:

> The pypy C-API progress, where we can basically run all of numpy (on a
> HEAD version numpy + nightly version of pypy).
>
> That means I will start to look at passing the matplotlib test suite.
>
> My first try segfaults, due to the tkagg backend blit function which
> calls into tk via id(data) and id(bbox_array).
>
> That of course will not work on PyPy since the address of a random
> python object does not reflect anything usable in C.
>
> So my question, as someone who is new to your codebase, is how to
> rewrite this using cffi or the standard C-API without impacting
> performance?
>
> Matti
>
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20160902/ba04fb21/attachment.html>


More information about the Matplotlib-devel mailing list