Discussion:
[Tkinter-discuss] is it possible to use a local tcl/tk with a local python?
Mark Summerfield
2012-06-18 06:46:33 UTC
Permalink
Hi,

Right now I have several local pythons so that I can test against
multiple versions, e.g.,

~/opt/python31
~/opt/python32
~/opt/python33

But all of these use the system-wide Tcl/Tck (8.5.11) in /usr/lib.

What I'd really like to do is have:

~/opt/python31tk85
~/opt/python32tk85
~/opt/python33tk85

~/opt/python31tk86
~/opt/python32tk86
~/opt/python33tk86

where these are built with one of these:

~/opt/tcltk85
~/opt/tcltk86

But I can't figure out how to tell Python's configure to use a local
Tcl/Tk.

Can anyone advise me?

Thanks!
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Advanced Qt Programming" - ISBN 0321635906
http://www.qtrac.eu/aqpbook.html
Michael Lange
2012-06-18 09:04:23 UTC
Permalink
Thus spoketh Mark Summerfield <list at qtrac.plus.com>
Post by Mark Summerfield
~/opt/python31tk85
~/opt/python32tk85
~/opt/python33tk85
~/opt/python31tk86
~/opt/python32tk86
~/opt/python33tk86
~/opt/tcltk85
~/opt/tcltk86
But I can't figure out how to tell Python's configure to use a local
Tcl/Tk.
I remember that I have been struggling with the same problem some time
ago and never found a really satisfying solution. IIRC what worked best
here was to temporarily remove the system default tcl/tk development
packages and then do something like
$ export LD_LIBRARY_PATH=~/opt/tcltk85
before running ./configure .

Regards

Michael


.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.

... The prejudices people feel about each other disappear when they get
to know each other.
-- Kirk, "Elaan of Troyius", stardate 4372.5
Ned Deily
2012-06-18 16:57:49 UTC
Permalink
In article <20120618074633.68b83d12 at dino>,
Post by Mark Summerfield
But I can't figure out how to tell Python's configure to use a local
Tcl/Tk.
Can anyone advise me?
http://permalink.gmane.org/gmane.comp.python.general/711390
--
Ned Deily,
nad at acm.org
Loading...