aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/__init__.py')
-rw-r--r--setuptools/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py
index 67b57e4f..2523ccc7 100644
--- a/setuptools/__init__.py
+++ b/setuptools/__init__.py
@@ -32,6 +32,7 @@ lib2to3_fixer_packages = ['lib2to3.fixes']
class PackageFinder(object):
+
@classmethod
def find(cls, where='.', exclude=(), include=('*',)):
"""Return a list all Python packages found within directory 'where'
@@ -108,7 +109,9 @@ class PackageFinder(object):
"""
return lambda name: any(fnmatchcase(name, pat=pat) for pat in patterns)
+
class PEP420PackageFinder(PackageFinder):
+
@staticmethod
def _looks_like_package(path):
return True
@@ -119,6 +122,7 @@ setup = distutils.core.setup
_Command = _get_unpatched(_Command)
+
class Command(_Command):
__doc__ = _Command.__doc__