Mercurial > cpython-lru_cache-weakref
diff setup.py @ 48514:79f84bc2b149
Fix bug 3375 - _multiprocessing.so build problems on OS X.
The solution is to clear sys.path_importer_cache.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 2008 16:23:53 +0000 |
| parents | 8e9e65383afb |
| children | 5da6f21cf805 |
line wrap: on
line diff
--- a/setup.py Thu Jul 17 16:10:34 2008 +0000 +++ b/setup.py Thu Jul 17 16:23:53 2008 +0000 @@ -263,6 +263,12 @@ ext_filename = os.path.join( self.build_lib, self.get_ext_filename(self.get_ext_fullname(ext.name))) + + # If the build directory didn't exist when setup.py was + # started, sys.path_importer_cache has a negative result + # cached. Clear that cache before trying to import. + sys.path_importer_cache.clear() + try: imp.load_dynamic(ext.name, ext_filename) except ImportError as why:
