On Nov 29, 2010, at 3:59 PM, David Cortesi wrote:
On Mon, Nov 29, 2010 at 11:18 AM, Russell E. Owen <ro...@uw.edu>
wrote:
I suggest you try python.org python instead of ActiveState Python. At
least for 2.6 and 2.7 it will preferentially use ActiveState's Tcl/
Tk if
found. However, I have not confirmed that with python.org Python 3.1
and
I don't know what major version of Tcl/Tk it wants (8.4, 8.5 or 8.6).
Re the last, _tkinter.c in the Python 3.1.3 dist says, "Only Tcl/Tk
8.3.1 and later are supported." The version distributed with Mac OS
10.6 is 8.5.7 and ActiveState is currently 8.5.9.
Re the main suggestion, apparently the only way to get Python3 for
OS X from Python.org is to download the source and build it.
It does appear that the Mac installer is not yet available. There is
such an installer for Python 3.1.2:
<http://www.python.org/download/releases/3.1.2/>
if you can live with the previous version.
I have (you can see) downloaded the package but frankly I find the
build instructions in configure* and in the global README and Mac/
README to be head-spinning. Yeah, sure, it's just configure; make;
sudo make install; -- except if I want it in /Library/Frameworks,
it's configure --enable-framework, plus if I want the 32- and 64-bit
versions, it's configure --enable-framework --enable-universalsdk --
with-universal-archs=intel ... I think.
That sounds plausible, but I confess I've not tried it. Do you really
need both 32 and 64 bit versions?
--enable-framework is essential if you want Aqua Tcl/Tk (it might be
the default on Mac OS X, but I prefer not to risk it).
Supposing I did this, will this fix the original problem that I
started out to solve, namely, getting Python3 to link to ActiveTCL?
It seems not, because Mac/README says "If you want Tkinter support
you need to get the OSX AquaTk distribution, this is installed by
default on Mac OS X 10.4 or later." In other words, it's going to
build _tkinter.so to use /System/Library/Frameworks/Tcl (Apple's)
and not /Library/Frameworks/Tcl (Active's). Where is that
configured? I've no idea.
I think you are misinterpreting the README. In the past whenever I
have built Python from source it has used my own Tcl/Tk (which is from
ActiveState). I would be very surprised if that has changed.
-- Russell
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss