diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-10 16:05:51 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-10 16:05:51 -0400 |
commit | 7b0a818f9a877d5e1fe558cf1a817bf2034ddf9f (patch) | |
tree | 3452c74ef397e6ade38631c08001d0b3a7d781a1 | |
parent | b41a4c193e402d8af04f2ad606391d86ff75fb8f (diff) | |
download | external_python_setuptools-7b0a818f9a877d5e1fe558cf1a817bf2034ddf9f.tar.gz external_python_setuptools-7b0a818f9a877d5e1fe558cf1a817bf2034ddf9f.tar.bz2 external_python_setuptools-7b0a818f9a877d5e1fe558cf1a817bf2034ddf9f.zip |
Fix test failures when 'foo.dist-info' does not exist
-rw-r--r-- | pkg_resources/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index b840b4d8..0575a989 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2072,7 +2072,7 @@ def dist_factory(path_item, entry, only): """Return a dist_factory for the given entry.""" lower = entry.lower() is_egg_info = lower.endswith('.egg-info') - is_dist_info = lower.endswith('.dist-info') and os.path.isdir(entry) + is_dist_info = lower.endswith('.dist-info') and not os.path.isfile(entry) is_meta = is_egg_info or is_dist_info return ( distributions_from_metadata |