TkAgg compilation


I've packaged matplotlib for the Guix functional package manager
( which compiles software in
isolated environments. The '' program fails to detect the
location and version of the Tlc/Tk libraries required to build the
'TkAgg' backend.

Looking into the problem I have the impression that the detection
method is a little bit out of date. Tcl/Tk ships with 'pkg-config' .pc
files and it would probably be more robust to use this approach (as
used to detect other libraries).

The attached patch does this and fixes the problem for us.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: matplotlib-setupext-tk.patch
Type: text/x-diff
Size: 1315 bytes
Desc: not available
URL: <>