Skip to content

Commit d8ec464

Browse files
committed
Issue python#14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
1 parent 38df514 commit d8ec464

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎Misc/NEWS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ Tests
309309
Build
310310
-----
311311

312+
- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
313+
312314
- Issue #8767: Restore building with --disable-unicode.
313315
Patch by Stefano Taschini.
314316

‎setup.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def is_macosx_sdk_path(path):
4848
Returns True if 'path' can be located in an OSX SDK
4949
"""
5050
return (path.startswith('/usr/') and not path.startswith('/usr/local')) or path.startswith('/System/')
51+
return ( (path.startswith('/usr/') and not path.startswith('/usr/local'))
52+
or path.startswith('/System/')
53+
or path.startswith('/Library/') )
5154

5255
def find_file(filename, std_dirs, paths):
5356
"""Searches for the directory where a given file is located,

0 commit comments

Comments
 (0)