diff options
-rwxr-xr-x | setuptools/command/egg_info.py | 4 | ||||
-rwxr-xr-x | setuptools/command/sdist.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 1223385f..eae7312e 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -226,8 +226,7 @@ class egg_info(Command): dirurl = urlre.search(data).group(1) # get repository URL localrev = max([int(m.group(1)) for m in revre.finditer(data)]) else: - from warnings import warn - warn("unrecognized .svn/entries format; skipping "+base) + log.warn("unrecognized .svn/entries format; skipping %s", base) dirs[:] = [] continue if base==os.curdir: @@ -244,6 +243,7 @@ class egg_info(Command): + def find_sources(self): """Generate SOURCES.txt manifest file""" manifest_filename = os.path.join(self.egg_info,"SOURCES.txt") diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index fc5bdfb2..2b1d117e 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -95,8 +95,7 @@ def entries_finder(dirname, filename): for match in entries_pattern.finditer(data): yield joinpath(dirname,unescape(match.group(1))) else: - from warnings import warn - warn("unrecognized .svn/entries format in "+dirname) + log.warn("unrecognized .svn/entries format in %s", dirname) finders = [ @@ -121,6 +120,7 @@ finders = [ + class sdist(_sdist): """Smart sdist that finds anything supported by revision control""" |