Commits

Anonymous committed 87ea16f

More Python 2.5 compatibility fixes.

  • Participants
  • Parent commits 4523fb6
  • Branches setuptools-0.6

Comments (0)

Files changed (3)

             pass
     return importer
 
-
-
-
-
-
-
-
+try:
+    from pkgutil import get_importer, ImpImporter
+except ImportError:
+    pass    # Python 2.3 or 2.4, use our own implementation
+else:
+    ImpWrapper = ImpImporter    # Python 2.5, use pkgutil's implementation
+    del ImpLoader, ImpImporter
 
 
 

pkg_resources.txt

     "importer" object.  This ``ImpWrapper`` is *not* cached; instead a new
     instance is returned each time.
 
+    (Note: When run under Python 2.5, this function is simply an alias for
+    ``pkgutil.get_importer()``, and instead of ``pkg_resources.ImpWrapper``
+    instances, it may return ``pkgutil.ImpImporter`` instances.)
+
 
 File/Path Utilities
 -------------------
 Release Notes/Change History
 ----------------------------
 
+0.6c3
+ * Python 2.5 compatibility fixes.
+
 0.6c2
  * Fix a problem with eggs specified directly on ``PYTHONPATH`` on
    case-insensitive filesystems possibly not showing up in the default

setuptools.egg-info/entry_points.txt

 
 [console_scripts]
 easy_install = setuptools.command.easy_install:main
-easy_install-2.3 = setuptools.command.easy_install:main
+easy_install-2.4 = setuptools.command.easy_install:main
 
 [distutils.commands]
 bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm