On Apr 6, 2012, at 1:29 AM, Martin Zibricky wrote:
>
> could you please sumarize the thing with tkinter?
hook-_tkinter.py contains the following function:
def find_tk_darwin(binaries):
pattern = re.compile(r'_tkinter')
for nm, fnm in binaries:
mo = pattern.match(nm)
if not mo:
continue
TCL_root = "/System/Library/Frameworks/Tcl.framework/Versions/Current"
TK_root = "/System/Library/Frameworks/Tk.framework/Versions/Current"
return TCL_root, TK_root
On my system it it called with binaries =
[('Tk', '/Library/Frameworks/Tk.framework/Versions/8.5/Tk'), ('Tcl',
'/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl')]
The statement mo = pattern.match(nm) does not find a match, and since the last
three statements are inside the for loop, they are not executed. I changed it
to something like this:
def find_tk_darwin(binaries):
TCL_root = "/System/Library/Frameworks/Tcl.framework/Versions/Current"
TK_root = "/System/Library/Frameworks/Tk.framework/Versions/Current"
for nm, fnm in binaries:
if nm == 'Tk':
TK_root = fnm
elif nm == 'Tcl':
TCL_root = fnm
return TCL_root, TK_root
For reference, here are all of the standard Tcl/Tk install locations that I
could find:
OS X 10.7:
/System/Library/Frameworks/Tcl.framework/Versions/Current
/System/Library/Frameworks/Tk.framework/Versions/Current
A user install from binaries goes to:
/Library/Frameworks/Tcl.framework/Versions/Current
/Library/Frameworks/Tk.framework/Versions/Current
The current SDK (4.2) which is now installed as an app package:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Tcl.framework/Versions/Current
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Tcl.framework/Versions/Current
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Tk.framework/Versions/Current
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Tk.framework/Versions/Current
SDK 4.1:
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Tcl.framework/Versions/Current
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Tcl.framework/Versions/Current
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Tk.framework/Versions/Current
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Tk.framework/Versions/Current
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.