diff --git a/setup.py b/setup.py index f9903ef77d9..c15bd7cf90f 100644 --- a/setup.py +++ b/setup.py @@ -154,6 +154,11 @@ def build_extension(self, 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: