On 7 Oct, 2009, at 20:53, Brett Cannon wrote: I just tried building out of svn and a ton of tests that rely on urllib failed because the _scproxy module wasn't built and it unconditionally imports it under darwin. Turns out that it requires the Mac toolbox glue to be built which I always skip since I don't care about it. Luckily the fix is easy enough: move some code in setup.py from the block that checks for "not --disable-toolbox-glue", the _scproxy module has no dependencies on the toolbox glue. The attached patch should fix the issue, Ronald |
Index: setup.py
===================================================================
--- setup.py (revision 75268)
+++ setup.py (working copy)
@@ -1349,6 +1349,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")):
@@ -1402,15 +1411,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
|
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
