Possible Tk version issue in setupext.py

Hi-

This is probably a low-probability event, however it may be
worth noting that the check for the Tk framework location in
setupext.py's detect_tkinter_darwin examines possible framework
paths in a different order than they are checked in Python's
setup.py for the purpose of building _tkinter. Python's
setup.py searches:

/Library/Frameworks
/System/Library/Frameworks/
$HOME/Library/Frameworks

MPL's setupext.py searches:

$HOME/Library/Frameworks
/Library/Frameworks
/System/Library/Frameworks/

If a user has installed more than one new (non-Apple) Tcl/Tk,
it is possible for MPL and _tkinter to link against different
frameworks. I think MPL does some version checking that
would prevent a build if there is a mismatch, but the source
of the difficulty may not be obvious to the installer.

The Snow Leopard Xcode man page for ld says the following about
ld's framework searching:

The default framework search path is /Library/Frameworks then
/System/Library/Frameworks.

It says nothing about searching under $HOME. So from the
point of view of Xcode it looks like there is no "right"
order between the two options, but MPL's looks "right" to me,
i.e., if a user has installed something under $HOME, the
user probably intends it to override the system.

-Tom

ยทยทยท

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/