Bug 214853

Summary: math/py-matplotlib: Enable building with python 3
Product: Ports & Packages Reporter: rsmith
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: c.brinkhaus, mainland, python
Priority: --- Keywords: needs-qa, patch
Version: LatestFlags: bugzilla: maintainer-feedback? (mainland)
vlad-fbsd: merge-quarterly?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch for the math/py-matplotlib port Makefile. none

Description rsmith 2016-11-26 15:03:08 UTC
Created attachment 177417 [details]
Patch for the math/py-matplotlib port Makefile.

The recent revision 426883 restricted matplotlib to Python 2.7 because it fails with Python 3.

However, this is *only true* in the default configuration.
When the gtk and gtkagg backends are disabled and the tkagg backend is enabled, matplotlib builds, installs and works fine with Python 3 (tested with Python 3.5) if I change `python:2.7` back to `python` in USES.

The attached patch adds the correct python to USES after the options are processed. But the build fails for some reason that I do not understand. During `make PYTHON_VERSION=python3.5 build` it says that matplotlib depends on `tkinter>0`, which it says it cannot find even though py35-tkinter-3.5.2_6 is already installed.

Probably this needs to done differently, but I don't see how.
Comment 1 c.brinkhaus 2016-12-31 18:29:50 UTC
The report seems to be a duplicate to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213636.
Comment 2 rsmith 2017-01-02 19:01:28 UTC
This is basically the same as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213636. 

This can be closed in favor of 213636.

*** This bug has been marked as a duplicate of bug 213636 ***