aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/__init__.py')
-rw-r--r--setuptools/__init__.py26
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.