[Image-SIG] Bug#41690: Ok, it now depends, but it shouldn't

Fredrik Lundh fredrik@pythonware.com
Sat, 14 Aug 1999 16:13:51 +0200

Matthias Klose <doko@cs.tu-berlin.de> wrote:
> For the beta of pil I sent a patch, which enables the dynamic loading
> of the TK library (if the TK installation is properly made). Is there
> a reason that this kind of configuration is not supported by PIL?
> I received a suggestion of a Debian user, who uses this package in
> this way.

PIL 1.0 can hook itself into Tk in two different

1) link _tkinter with the tkImaging module (old style)
2) link _imaging with the same module (new style)

in both cases, tkImaging needs access to the under-
lying Tcl/Tk libraries, so (2) only works well if you're
using shared libraries.

I reviewed several suggested modifications (cannot
remember if your were on that list, though) before
settling on the current design, which appeared to
me as the only one that didn't put any special
requirements on how/where Tcl/Tk was installed,
didn't need any modifications to _tkinter nor Tcl/Tk,
or required the user to run special commands to
finish the installation.

(but of course, 1.0 isn't the last release ever...  if
anyone has a solution that is truly better than the
current one -- and works on all platforms -- please
step forward).