Programming and Scripting :: Python and Tk



If you have Tcl/Tk installed then the Python libraries need to be rebuilt. The Python make file gives a warning that it isn't building the Tcl/Tk extensions because it can find the libraries, so I'd imagine that if you have the libraries available then it will build the extensions and then everything should work.
Okay, I'll try making my own python extension with Tcl/Tk's libs and stuff.

If it works, I'll let you guys know.

I built Python 2.5 from source a bunch of times now, with Tcl/Tk previously installed.

Tkinter still doesn't work.

help!

After finally looking through my project files (yes, I'm slow and lazy....get used to it) I see that I never actually completed the tcl/tk upgrade to 8.4.14 including the headers. This would probably help in building Python to use tkinter (although it's just a guess...i've never used or installed tkinter).  Gimme a day or two to sober up and finish putting this package together, and another few days for roberts to get it and add to testing, and then maybe (MAYBE!) it will provide what you need to build python against tcl/tk.

Either that, or you could build tcl/tk on your own machine. It's actually quite easy to do in DSL

I already built Tcl/Tk from source packages, and built a .unc extension for them (combined). I tried compiling Python while the .unc extension was mounted, but the extension might be missing the headers... I'm not sure if they are installed with make install.

When I compiled/installed Tcl/Tk to the ramdisk, Python built quite well. I just wasn't able to preserve that installation, or put it into an extension properly.

It's quite possible I'm omitting files from the extensions I build. I don't know how to make sure I have all of them.

Next Page...
original here.