summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index f9903ef77d..c15bd7cf90 100644
--- a/setup.py
+++ b/setup.py
@@ -154,6 +154,11 @@ class PyBuildExt(build_ext):
self.announce('WARNING: building of extension "%s" failed: %s' %
(ext.name, sys.exc_info()[1]))
return
+ # Workaround for Mac OS X: The Carbon-based modules cannot be
+ # reliably imported into a command-line Python
+ if 'Carbon' in ext.extra_link_args:
+ self.announce('WARNING: skipping import check for Carbon-based "%s"' % ext.name)
+ return
try:
__import__(ext.name)
except ImportError: