1*59dd616dSHerbert Dürr--- misc/Python-2.7.5/setup.py 2013-07-01 17:51:46.237674580 +0200 2*59dd616dSHerbert Dürr+++ misc/build/Python-2.7.5/setup.py 2013-07-01 17:51:24.230453108 +0200 3*59dd616dSHerbert Dürr@@ -80,61 +80,62 @@ 4*59dd616dSHerbert Dürr # system, but with only header files and libraries. 5*59dd616dSHerbert Dürr sysroot = macosx_sdk_root() 6*59dd616dSHerbert Dürr 7*59dd616dSHerbert Dürr- # Check the standard locations 8*59dd616dSHerbert Dürr- for dir in std_dirs: 9*59dd616dSHerbert Dürr+ # Check the additional directories 10*59dd616dSHerbert Dürr+ for dir in paths: 11*59dd616dSHerbert Dürr f = os.path.join(dir, filename) 12*59dd616dSHerbert Dürr 13*59dd616dSHerbert Dürr if host_platform == 'darwin' and is_macosx_sdk_path(dir): 14*59dd616dSHerbert Dürr f = os.path.join(sysroot, dir[1:], filename) 15*59dd616dSHerbert Dürr 16*59dd616dSHerbert Dürr- if os.path.exists(f): return [] 17*59dd616dSHerbert Dürr+ if os.path.exists(f): 18*59dd616dSHerbert Dürr+ return [dir] 19*59dd616dSHerbert Dürr 20*59dd616dSHerbert Dürr- # Check the additional directories 21*59dd616dSHerbert Dürr- for dir in paths: 22*59dd616dSHerbert Dürr+ # Check the standard locations 23*59dd616dSHerbert Dürr+ for dir in std_dirs: 24*59dd616dSHerbert Dürr f = os.path.join(dir, filename) 25*59dd616dSHerbert Dürr 26*59dd616dSHerbert Dürr if host_platform == 'darwin' and is_macosx_sdk_path(dir): 27*59dd616dSHerbert Dürr f = os.path.join(sysroot, dir[1:], filename) 28*59dd616dSHerbert Dürr 29*59dd616dSHerbert Dürr if os.path.exists(f): 30*59dd616dSHerbert Dürr- return [dir] 31*59dd616dSHerbert Dürr+ return [] 32*59dd616dSHerbert Dürr 33*59dd616dSHerbert Dürr # Not found anywhere 34*59dd616dSHerbert Dürr return None 35*59dd616dSHerbert Dürr 36*59dd616dSHerbert Dürr def find_library_file(compiler, libname, std_dirs, paths): 37*59dd616dSHerbert Dürr- result = compiler.find_library_file(std_dirs + paths, libname) 38*59dd616dSHerbert Dürr+ result = compiler.find_library_file(paths+std_dirs, libname) 39*59dd616dSHerbert Dürr if result is None: 40*59dd616dSHerbert Dürr return None 41*59dd616dSHerbert Dürr 42*59dd616dSHerbert Dürr if host_platform == 'darwin': 43*59dd616dSHerbert Dürr sysroot = macosx_sdk_root() 44*59dd616dSHerbert Dürr 45*59dd616dSHerbert Dürr- # Check whether the found file is in one of the standard directories 46*59dd616dSHerbert Dürr dirname = os.path.dirname(result) 47*59dd616dSHerbert Dürr- for p in std_dirs: 48*59dd616dSHerbert Dürr+ # Otherwise, it must have been in one of the additional directories, 49*59dd616dSHerbert Dürr+ # so we have to figure out which one. 50*59dd616dSHerbert Dürr+ for p in paths: 51*59dd616dSHerbert Dürr # Ensure path doesn't end with path separator 52*59dd616dSHerbert Dürr p = p.rstrip(os.sep) 53*59dd616dSHerbert Dürr 54*59dd616dSHerbert Dürr if host_platform == 'darwin' and is_macosx_sdk_path(p): 55*59dd616dSHerbert Dürr if os.path.join(sysroot, p[1:]) == dirname: 56*59dd616dSHerbert Dürr- return [ ] 57*59dd616dSHerbert Dürr+ return [ p ] 58*59dd616dSHerbert Dürr 59*59dd616dSHerbert Dürr if p == dirname: 60*59dd616dSHerbert Dürr- return [ ] 61*59dd616dSHerbert Dürr+ return [p] 62*59dd616dSHerbert Dürr 63*59dd616dSHerbert Dürr- # Otherwise, it must have been in one of the additional directories, 64*59dd616dSHerbert Dürr- # so we have to figure out which one. 65*59dd616dSHerbert Dürr- for p in paths: 66*59dd616dSHerbert Dürr+ # Check whether the found file is in one of the standard directories 67*59dd616dSHerbert Dürr+ for p in std_dirs: 68*59dd616dSHerbert Dürr # Ensure path doesn't end with path separator 69*59dd616dSHerbert Dürr p = p.rstrip(os.sep) 70*59dd616dSHerbert Dürr 71*59dd616dSHerbert Dürr if host_platform == 'darwin' and is_macosx_sdk_path(p): 72*59dd616dSHerbert Dürr if os.path.join(sysroot, p[1:]) == dirname: 73*59dd616dSHerbert Dürr- return [ p ] 74*59dd616dSHerbert Dürr+ return [ ] 75*59dd616dSHerbert Dürr 76*59dd616dSHerbert Dürr if p == dirname: 77*59dd616dSHerbert Dürr- return [p] 78*59dd616dSHerbert Dürr+ return [ ] 79*59dd616dSHerbert Dürr else: 80*59dd616dSHerbert Dürr assert False, "Internal error: Path not found in std_dirs or paths" 81*59dd616dSHerbert Dürr 82*59dd616dSHerbert Dürr@@ -851,6 +852,8 @@ 83*59dd616dSHerbert Dürr have_usable_openssl = (have_any_openssl and 84*59dd616dSHerbert Dürr openssl_ver >= min_openssl_ver) 85*59dd616dSHerbert Dürr 86*59dd616dSHerbert Dürr+ print( "ssl_incs="+str(ssl_incs)) 87*59dd616dSHerbert Dürr+ print( "ssl_libs="+str(ssl_libs)) 88*59dd616dSHerbert Dürr if have_any_openssl: 89*59dd616dSHerbert Dürr if have_usable_openssl: 90*59dd616dSHerbert Dürr # The _hashlib module wraps optimized implementations 91