Mercurial > cpython-lru_cache-weakref
diff setup.py @ 20815:57ab65c2f170 legacy-trunk
The import check in setup.py fails on Mac OS X for Carbon-based modules
if you are not building while logged in to the console (you cannot
connect to the window server, so the Carbon library doesn't initialize).
Added a quick hack to skip the import test, with a warning, for modules
linked against Carbon.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 01 Nov 2001 14:44:15 +0000 |
| parents | 961b24f8e1d8 |
| children | 778e6a80fcee |
line wrap: on
line diff
--- a/setup.py Thu Nov 01 14:23:28 2001 +0000 +++ b/setup.py Thu Nov 01 14:44:15 2001 +0000 @@ -154,6 +154,11 @@ 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:
