1/^def macosx_sdk_root(/a 2. 3/cflags =/i 4 sdkroot = os.environ.get('SDKROOT') 5 if sdkroot is not None: 6 return sdkroot 7. 8/# Check the additional directories$/a 9. 10/f = os\.path\.join(sysroot, dir\[1:], filename)/c 11 dir = os.path.join(sysroot, dir[1:]) 12 f = os.path.join(dir, filename) 13. 14/# Otherwise, it must have been in one of the additional directories,$/a 15. 16/if os\.path\.join(sysroot, p\[1:]) == dirname:/c 17 sp = os.path.join(sysroot, p[1:]) 18 if sp == dirname: 19. 20/return \[ p ]/s/p/sp/ 21g/('-Wl,-search_paths_first',)/s//()/ 22/'-arch' in ext.extra_link_args/s//'-no64' in ext.extra_link_args/ 23/Disabled on 64-bit platforms/a 24. 25/sys.maxint != 9223372036854775807L/s//True/ 26/\['imageop.c'\]/s//&, extra_compile_args = ['-no64'], extra_link_args = ['-no64']/ 27/# readline$/a 28. 29/if host_platform == 'darwin':/a 30. 31.,/if do_readline:/-1s/^/#/ 32/readline_extra_link_args/a 33. 34?darwin?,.+1d 35s/ // 36/if sys.maxint == 0x7fffffff:/d 37.,/missing\.append('dl')/s/ // 38/else:/a 39. 40.,/missing\.append('dl')/d 41?Extension('dl'?s/]/&, extra_compile_args = ['-no64'], extra_link_args = ['-no64']/ 42/carbon_kwds =/a 43. 44.,/}/t/}/ 45?carbon_kwds?s//&32/ 46s/carbon_extra_compile_args/& + ['-no64']/ 47/'-framework', 'Carbon'/s//&, '-no64'/ 48/CARBON_EXTS/a 49. 50s/ 'Nav',// 51.t/\]/ 52s/CARBON_EXTS/&32/ 53s/'.*/'Nav', '_Win']/ 54/for name in CARBON_EXTS/a 55. 56.,/^$/-1t.-1 57/CARBON_EXTS/s//&32/ 58/carbon_kwds/s//&32/ 59/Workaround for a bug/a 60. 61.,/^$/d 62/extra_compile_args=carbon_extra_compile_args/s//& + ['-no64']/ 63/'-framework', 'Carbon'/s//&, '-no64'/ 64/def detect_tkinter_darwin/a 65. 66/don't support 64-bit$/-1a 67. 68.,/frameworks.append(a)/d 69w 70