mirror of
https://github.com/python/cpython.git
synced 2025-08-16 06:40:56 +00:00
Two small fixes for the support for SDKs on MacOSX:
1) The code that checks if an path should be located in the SDK explicitly excludes /usr/local. This fixes issue9046 2) The SDK variant for filtering "db_dirs_to_check" in setup.py was not doing anything because of a missing assignment.
This commit is contained in:
parent
ad72bcc864
commit
cd17213e8e
2 changed files with 5 additions and 2 deletions
|
@ -324,7 +324,9 @@ class UnixCCompiler(CCompiler):
|
|||
static = os.path.join(dir, static_f)
|
||||
|
||||
if sys.platform == 'darwin' and (
|
||||
dir.startswith('/System/') or dir.startswith('/usr/')):
|
||||
dir.startswith('/System/') or (
|
||||
dir.startswith('/usr/') and not dir.startswith('/usr/local/'))):
|
||||
|
||||
shared = os.path.join(sysroot, dir[1:], shared_f)
|
||||
dylib = os.path.join(sysroot, dir[1:], dylib_f)
|
||||
static = os.path.join(sysroot, dir[1:], static_f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue