Use a locally built Tk for Python?
Kushal Kumaran
kushal.kumaran+python at gmail.com
Mon Jun 4 05:14:49 EDT 2012
On Mon, Jun 4, 2012 at 12:51 PM, Mark Summerfield <list at qtrac.plus.com> wrote:
> Thanks for your thoughtful replies.
>
> I don't use altinstall because using --prefix is sufficient to get a
> locally built Python.
>
> Both your suggestions require root (or sudo) and changing the system
> itself. Whereas I was hoping to just build a local Python and install
> my own Tcl/Tk in its lib and site-packages (which I believe is what
> happens on Windows?).
>
> Anyway, maybe that isn't possible. I will try installing my patched
> Tcl/Tk system wide on an old machine and if that works I'll do it to
> my main machine and rebuild my Pythons to use it.
You can try these:
- set LD_LIBRARY_PATH to /home/mark/opt/tcltk85/lib when running python, or
- configure your python with LDFLAGS set to
-Wl,-rpath=/home/mark/opt/tcltk85/lib
Both of these are slightly smelly hacks, but might suffice for your needs.
--
regards,
kushal
More information about the Python-list
mailing list