Skip to content

Commit ed3425a

Browse files
Ensure that _scproxy gets build even when --disable-toolbox-glue
is specified on OSX. Fixes a regression in 2.6.3.
1 parent 5a7f1d3 commit ed3425a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,15 @@ class db_found(Exception): pass
13471347
else:
13481348
missing.append('sunaudiodev')
13491349

1350+
if platform == 'darwin':
1351+
# _scproxy
1352+
exts.append(Extension("_scproxy", [os.path.join(srcdir, "Mac/Modules/_scproxy.c")],
1353+
extra_link_args= [
1354+
'-framework', 'SystemConfiguration',
1355+
'-framework', 'CoreFoundation'
1356+
]))
1357+
1358+
13501359
if platform == 'darwin' and ("--disable-toolbox-glue" not in
13511360
sysconfig.get_config_var("CONFIG_ARGS")):
13521361

@@ -1400,15 +1409,6 @@ def addMacExtension(name, kwds, extra_srcs=[]):
14001409
addMacExtension('_CF', core_kwds, ['cf/pycfbridge.c'])
14011410
addMacExtension('autoGIL', core_kwds)
14021411

1403-
# _scproxy
1404-
sc_kwds = {
1405-
'extra_compile_args': carbon_extra_compile_args,
1406-
'extra_link_args': [
1407-
'-framework', 'SystemConfiguration',
1408-
'-framework', 'CoreFoundation'
1409-
],
1410-
}
1411-
addMacExtension("_scproxy", sc_kwds)
14121412

14131413

14141414
# Carbon

0 commit comments

Comments
 (0)