mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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:
parent
5d6aeb8d99
commit
2910a7ba6b
3 changed files with 50 additions and 13 deletions
4
setup.py
4
setup.py
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue