Skip to content

Include tkinter module for Python

Tom Coldrick requested to merge coldtom/tkinter into master

Resolves #976.

So to add Tkinter into the runtime, python needs to link against Tcl and Tk. Tk looked to have few dependencies, but it turns out it sits atop a pile of python3 dependencies, and so I was forced to bootstrap python, and also a bunch of other elements which I suppose we'll want rebuilding against the proper python3 too. This is a very rough version of this, which manages to pass the python3 -c "import tkinter" test on the built python3 element.

On top of that Tcl and Perl provide a conflicting Thread(3) manpage, of which I've arbitrarily chosen Tcl's to remove for now (I didn't fancy rebuilding autotools etc.)

Mainly looking for general feedback about if tkinter is worth the faff of building python and a litany of other modules twice, or if we should just somehow provide a "Python but more" extension.

Edited by Tom Coldrick

Merge request reports