mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Merged revisions 82272 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82272 | ronald.oussoren | 2010-06-27 14:36:16 +0200 (Sun, 27 Jun 2010) | 8 lines
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
8459447269
commit
dc969e591e
2 changed files with 5 additions and 2 deletions
|
|
@ -340,7 +340,9 @@ def find_library_file(self, dirs, lib, debug=0):
|
|||
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)
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -46,7 +46,7 @@ def is_macosx_sdk_path(path):
|
|||
"""
|
||||
Returns True if 'path' can be located in an OSX SDK
|
||||
"""
|
||||
return path.startswith('/usr/') or path.startswith('/System/')
|
||||
return (path.startswith('/usr/') and not path.startswith('/usr/local')) or path.startswith('/System/')
|
||||
|
||||
def find_file(filename, std_dirs, paths):
|
||||
"""Searches for the directory where a given file is located,
|
||||
|
|
@ -862,6 +862,7 @@ class db_found(Exception): pass
|
|||
else:
|
||||
if os.path.isdir(dn):
|
||||
tmp.append(dn)
|
||||
db_dirs_to_check = tmp
|
||||
|
||||
db_dirs_to_check = tmp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue