Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.

Also add tests in the OS X installer build to ensure that the desired
dynamic linking with an optional newer Tcl/Tk in /Library actually
happens.
This commit is contained in:
Ned Deily 2012-07-30 02:35:58 -07:00
parent 5d6aeb8d99
commit 2910a7ba6b
3 changed files with 50 additions and 13 deletions

View file

@ -69,7 +69,9 @@ def is_macosx_sdk_path(path):
"""
Returns True if 'path' can be located in an OSX SDK
"""
return (path.startswith('/usr/') and not path.startswith('/usr/local')) or path.startswith('/System/')
return ( (path.startswith('/usr/') and not path.startswith('/usr/local'))
or path.startswith('/System/')
or path.startswith('/Library/') )
def find_file(filename, std_dirs, paths):
"""Searches for the directory where a given file is located,