Commit 601add28 authored by PJ Eby's avatar PJ Eby

Fix ``resource_listdir('')`` always returning an empty list for zipped

eggs.  Fix missing import in sdist command when encountering
unrecognized SVN entries format.  (backports from trunk)

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4060849
parent ef659874
......@@ -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"""
......
......@@ -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)
......
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'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment