summaryrefslogtreecommitdiff
path: root/setuptools/__init__.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2007-05-31 17:30:55 +0000
committerPJ Eby <distutils-sig@python.org>2007-05-31 17:30:55 +0000
commitb364978eee6eaf2e03999ab0590a16278a03b13e (patch)
tree82cfe1b08ac83e76cb354191573a21beb4060695 /setuptools/__init__.py
parent89111e6143f3a9bb510433f529d4281681b7c66e (diff)
downloadpython-setuptools-git-b364978eee6eaf2e03999ab0590a16278a03b13e.tar.gz
Backport fixes and doc updates; prep for 0.6c6 release
--HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4055712
Diffstat (limited to 'setuptools/__init__.py')
-rw-r--r--setuptools/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py
index ac28ad02..c8764396 100644
--- a/setuptools/__init__.py
+++ b/setuptools/__init__.py
@@ -30,11 +30,11 @@ def find_packages(where='.', exclude=()):
where,prefix = stack.pop(0)
for name in os.listdir(where):
fn = os.path.join(where,name)
- if (os.path.isdir(fn) and
+ if ('.' not in name and os.path.isdir(fn) and
os.path.isfile(os.path.join(fn,'__init__.py'))
):
out.append(prefix+name); stack.append((fn,prefix+name+'.'))
- for pat in exclude:
+ for pat in list(exclude)+['ez_setup']:
from fnmatch import fnmatchcase
out = [item for item in out if not fnmatchcase(item,pat)]
return out