Note: an alternative to all of these arduous/sketchy steps is simply to go with an older version of pywebkitgtk, like version 1.0.2… but that’s almost 2 years old at this point. I’ll take the newer stuff.
No biggie, just apt-get it.
I used 1.1.10; Debian Lenny has 1.0-1 which is not supported by pywebkitgtk-1.1.7
( instructions at http://trac.webkit.org/wiki/BuildingGtk#BuildandInstall )
PS this took about 40 minutes to compile (on a VM)
A few dependency issues that can be solved by searching for the -dev packages… except for libsoup. I had to uninstall it and seek out 2.25.91 and compile/install it manually. I tried being a jerk and changing configure to accept debian’s version. Don’t bother.
(Used 1.1.6. Was aiming for 1.1.7 but they didn’t update their dependencies or something… it does not work with webkit 1.1.10… which is too bad because I just do not have the time to hunt down the LCD and compile it at this time)
pretty swift installation here.
Making python go…
If you installed webkit with your package manager be sure to remove it or this won’t really work. For some reason my python installation doesn’t know to search in /usr/local/…. so I have to set the PYTHONPATH manually…
At this point, you can check out this rudimentary example somebody left on Stack Overflow:
view = webkit.WebView()
sw = gtk.ScrolledWindow()
win = gtk.Window(gtk.WINDOW_TOPLEVEL)
…. And that works and concludes the scope of this article. However I expect to update this according to later versions of these packages.