aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-03-21 22:41:09 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-03-21 22:41:09 -0400
commit2b13fb2cdaf1bec24a36d874878505ba53272ff3 (patch)
tree2d7a97b5a6f6ef444c102e8bae8fef8c60ba4a3d
parentc9494d73ee409d6b8f69fed82b26f5c71681bdaf (diff)
downloadexternal_python_setuptools-2b13fb2cdaf1bec24a36d874878505ba53272ff3.tar.gz
external_python_setuptools-2b13fb2cdaf1bec24a36d874878505ba53272ff3.tar.bz2
external_python_setuptools-2b13fb2cdaf1bec24a36d874878505ba53272ff3.zip
Use a default that communicates the purpose and also degenerates nicely.
-rw-r--r--setuptools/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py
index 86afab63..8f0887c6 100644
--- a/setuptools/__init__.py
+++ b/setuptools/__init__.py
@@ -28,7 +28,7 @@ run_2to3_on_doctests = True
# Standard package names for fixer packages
lib2to3_fixer_packages = ['lib2to3.fixes']
-def find_packages(where='.', exclude=(), include=()):
+def find_packages(where='.', exclude=(), include=('*',)):
"""Return a list all Python packages found within directory 'where'
'where' should be supplied as a "cross-platform" (i.e. URL-style) path; it
@@ -63,8 +63,7 @@ def find_packages(where='.', exclude=(), include=()):
)
if looks_like_package:
pkg_name = prefix + name
- if (not include or
- any(fnmatchcase(pkg_name, pat) for pat in include)):
+ if any(fnmatchcase(pkg_name, pat) for pat in include):
out.append(pkg_name)
stack.append((fn, pkg_name + '.'))
for pat in exclude: