diff options
author | PJ Eby <distutils-sig@python.org> | 2007-07-11 17:37:17 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2007-07-11 17:37:17 +0000 |
commit | 74aaaf1c55d624b3424a435928b4ab310784a57c (patch) | |
tree | 954e5d75c76b33e632851ce4963704bd491db6be /setuptools/__init__.py | |
parent | 29c54edeca3c017eae443dd2b4282a84cf037f06 (diff) | |
download | external_python_setuptools-74aaaf1c55d624b3424a435928b4ab310784a57c.tar.gz external_python_setuptools-74aaaf1c55d624b3424a435928b4ab310784a57c.tar.bz2 external_python_setuptools-74aaaf1c55d624b3424a435928b4ab310784a57c.zip |
Fix distutils.filelist.findall() crashing on broken symlinks. Fix
egg_info failures on new, uncommitted SVN directories.
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4056277
Diffstat (limited to 'setuptools/__init__.py')
-rw-r--r-- | setuptools/__init__.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py index cdf8eae2..a4f84445 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -63,19 +63,19 @@ class Command(_Command): import distutils.core distutils.core.Command = Command # we can't patch distutils.cmd, alas - - - - - - - - - - - - - +def findall(dir = os.curdir): + """Find all files under 'dir' and return the list of full filenames + (relative to 'dir'). + """ + all_files = [] + for base, dirs, files in os.walk(dir): + if base!=os.curdir: + files = [os.path.join(base, f) for f in files] + all_files.extend(filter(os.path.isfile, files)) + return all_files + +import distutils.filelist +distutils.filelist.findall = findall # fix findall bug in distutils. |