diff options
| -rw-r--r-- | pkg_resources.py | 14 | ||||
| -rwxr-xr-x | pkg_resources.txt | 7 | ||||
| -rwxr-xr-x | setuptools.egg-info/entry_points.txt | 2 |
3 files changed, 15 insertions, 8 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 03f48225..b4b92e87 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1502,13 +1502,13 @@ def get_importer(path_item): 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 diff --git a/pkg_resources.txt b/pkg_resources.txt index bcd0925a..fabdb46c 100755 --- a/pkg_resources.txt +++ b/pkg_resources.txt @@ -1665,6 +1665,10 @@ PEP 302 Utilities "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 ------------------- @@ -1687,6 +1691,9 @@ 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 diff --git a/setuptools.egg-info/entry_points.txt b/setuptools.egg-info/entry_points.txt index 6e48f078..4156edb5 100755 --- a/setuptools.egg-info/entry_points.txt +++ b/setuptools.egg-info/entry_points.txt @@ -28,7 +28,7 @@ depends.txt = setuptools.command.egg_info:warn_depends_obsolete [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 |
