summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg_resources.py6
-rwxr-xr-xpkg_resources.txt3
-rwxr-xr-xsetuptools/command/sdist.py2
3 files changed, 7 insertions, 4 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 78c96094..c5ebbb3d 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1188,7 +1188,9 @@ class NullProvider:
)
def _fn(self, base, resource_name):
- return os.path.join(base, *resource_name.split('/'))
+ if resource_name:
+ return os.path.join(base, *resource_name.split('/'))
+ return base
def _get(self, path):
if hasattr(self.loader, 'get_data'):
@@ -1226,8 +1228,6 @@ class EggProvider(NullProvider):
-
-
class DefaultProvider(EggProvider):
"""Provides access to package resources in the filesystem"""
diff --git a/pkg_resources.txt b/pkg_resources.txt
index ad660a77..7d8afd37 100755
--- a/pkg_resources.txt
+++ b/pkg_resources.txt
@@ -1692,6 +1692,9 @@ File/Path Utilities
Release Notes/Change History
----------------------------
+0.6final
+ * Fix ``resource_listdir('')`` always returning an empty list for zipped eggs.
+
0.6c7
* Fix package precedence problem where single-version eggs installed in
``site-packages`` would take precedence over ``.egg`` files (or directories)
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 2b1d117e..40c5a7c4 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -1,5 +1,6 @@
from distutils.command.sdist import sdist as _sdist
from distutils.util import convert_path
+from distutils import log
import os, re, sys, pkg_resources
entities = [
@@ -38,7 +39,6 @@ def joinpath(prefix,suffix):
-
def walk_revctrl(dirname=''):
"""Find all files under revision control"""
for ep in pkg_resources.iter_entry_points('setuptools.file_finders'):