Mercurial > cpython-lru_cache-weakref
diff setup.py @ 26779:92a406115e7c 2.2
*cough* repair utterly broken stuff from my last check-in (to do with
renaming rather than deleting modules that don't import).
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Tue, 24 Dec 2002 14:45:54 +0000 |
| parents | 4e6ac2fe68f0 |
| children | bc7f8913f5ca |
line wrap: on
line diff
--- a/setup.py Mon Dec 23 16:26:15 2002 +0000 +++ b/setup.py Tue Dec 24 14:45:54 2002 +0000 @@ -3,7 +3,7 @@ __version__ = "$Revision$" -import sys, os, getopt +import sys, os, getopt, imp from distutils import sysconfig from distutils import text_file from distutils.errors import * @@ -161,9 +161,12 @@ 'WARNING: skipping import check for Carbon-based "%s"' % ext.name) return + ext_filename = os.path.join( + self.build_lib, + self.get_ext_filename(self.get_ext_fullname(ext.name))) try: - __import__(ext.name) - except ImportError: + imp.load_dynamic(ext.name, ext_filename) + except ImportError, why: if 1: self.announce('*** WARNING: renaming "%s" since importing it' ' failed: %s' % (ext.name, why))
