[Pythonmac-SIG] Re: Beginner's questions

Russell E Owen owen at astro.washington.edu
Mon Dec 29 12:19:59 EST 2003


At 4:28 PM +0100 12/27/03, Jack Jansen wrote:
>On 26-dec-03, at 22:54, Russell E. Owen wrote:
>
>>...This is one good reason to also have a fink python or other X11/unix
>>python around....
>
>Note that you can also do this without installing a second Python. If
>you put _tkinter.so for X11 in, say, ~/Library/X11-Python and you add
>that directory to $PYTHONPATH. You could create a script x11python
>containing
>
>	#!/bin/sh
>	PYTHONPATH=~/Library/X11-Python:$PYTHONPATH
>	exec /usr/bin/python "$@"
>
>should do the trick, I think (untested).

That is a very interesting idea. I suppose one could do an x11 build 
of python, extract _tkinter.so and then discard the build, thus 
saving disk space and clutter over keeping two builds. But...might 
there some simpler way to obtain an x11-based _tkinter.so?

-- Russell



More information about the Pythonmac-SIG mailing list