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.
This commit is contained in:
parent
c556c64405
commit
3b796680c3
2 changed files with 5 additions and 0 deletions
|
@ -435,6 +435,8 @@ Build
|
||||||
- Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
|
- Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
|
||||||
Based on patch from Hervé Coatanhay.
|
Based on patch from Hervé Coatanhay.
|
||||||
|
|
||||||
|
- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -60,6 +60,9 @@ def is_macosx_sdk_path(path):
|
||||||
Returns True if 'path' can be located in an OSX SDK
|
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/')
|
||||||
|
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):
|
def find_file(filename, std_dirs, paths):
|
||||||
"""Searches for the directory where a given file is located,
|
"""Searches for the directory where a given file is located,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue