From: Ronald Oussoren Date: Wed, 4 Mar 2009 21:30:12 +0000 (+0000) Subject: Change framework search order when looking for Tcl/Tk on OSX. X-Git-Tag: v2.7a1~1898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea1ddb4aa6ccae552ff9838cb07c6802785b8fc;p=python Change framework search order when looking for Tcl/Tk on OSX. This is needed because the system linker looks in /Library/Framework before it looks in /System/Library frameworks. Without this patch _tkinter will be unusable when it is compiled on a system that has Tk 8.5 installed in /Library/Frameworks (and the Apple 8.4 install in /System/Library/Frameworks) --- diff --git a/setup.py b/setup.py index 985779dea3..f1e983d3f0 100644 --- a/setup.py +++ b/setup.py @@ -1443,8 +1443,8 @@ class PyBuildExt(build_ext): # different the UNIX search logic is not sharable. from os.path import join, exists framework_dirs = [ - '/System/Library/Frameworks/', '/Library/Frameworks', + '/System/Library/Frameworks/', join(os.getenv('HOME'), '/Library/Frameworks') ]