Mercurial > cpython-lru_cache-weakref
diff setup.py @ 56414:c45ce285f552 legacy-trunk
Ensure that _scproxy gets build even when --disable-toolbox-glue
is specified on OSX. Fixes a regression in 2.6.3.
| author | Ronald Oussoren <ronaldoussoren@mac.com> |
|---|---|
| date | Thu, 08 Oct 2009 08:04:15 +0000 |
| parents | b0a2fba00458 |
| children | 2e3ec3bb4be7 |
line wrap: on
line diff
--- a/setup.py Wed Oct 07 19:22:05 2009 +0000 +++ b/setup.py Thu Oct 08 08:04:15 2009 +0000 @@ -1347,6 +1347,15 @@ else: missing.append('sunaudiodev') + if platform == 'darwin': + # _scproxy + exts.append(Extension("_scproxy", [os.path.join(srcdir, "Mac/Modules/_scproxy.c")], + extra_link_args= [ + '-framework', 'SystemConfiguration', + '-framework', 'CoreFoundation' + ])) + + if platform == 'darwin' and ("--disable-toolbox-glue" not in sysconfig.get_config_var("CONFIG_ARGS")): @@ -1400,15 +1409,6 @@ addMacExtension('_CF', core_kwds, ['cf/pycfbridge.c']) addMacExtension('autoGIL', core_kwds) - # _scproxy - sc_kwds = { - 'extra_compile_args': carbon_extra_compile_args, - 'extra_link_args': [ - '-framework', 'SystemConfiguration', - '-framework', 'CoreFoundation' - ], - } - addMacExtension("_scproxy", sc_kwds) # Carbon
