Did I find the right examples for you? yes no

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)
Return a list all Python packages found within directory 'where'

'where' should be supplied as a "cross-platform" (i.e. URL-style) path; it
will be converted to the appropriate local path syntax.  'exclude' is a
sequence of package names to exclude; '*' can be used as a wildcard in the
names, such that 'foo.*' will exclude all subpackages of 'foo' (but not
'foo' itself).

        def find_packages(where='.', exclude=[]):
    """Return a list all Python packages found within directory 'where'

    'where' should be supplied as a "cross-platform" (i.e. URL-style) path; it
    will be converted to the appropriate local path syntax.  'exclude' is a
    sequence of package names to exclude; '*' can be used as a wildcard in the
    names, such that 'foo.*' will exclude all subpackages of 'foo' (but not
    'foo' itself).
    """
    out = []
    stack=[(convert_path(where), '')]
    while stack:
        where,prefix = stack.pop(0)
        for name in os.listdir(where):
            fn = os.path.join(where,name)
            if (os.path.isdir(fn) and
                os.path.isfile(os.path.join(fn,'__init__.py'))
            ):
                out.append(prefix+name); stack.append((fn,prefix+name+'.'))
    exclude = ["archimedes"] + exclude
    for pat in exclude:
        from fnmatch import fnmatchcase
        out = [item for item in out if not fnmatchcase(item,pat)]
    return out
        


src/m/e/merlin-1-1.0/setup.py   merlin(Download)
 
VERSION = "1.7"
from merlin import setup, find_packages
import sys
scripts = []
    url = 'http://www.geodynamics.org/cig/software/packages/cs/pythia/',
    test_suite = 'merlin.tests',
    packages = find_packages(),
    package_data = {'merlin':['*.exe', '*.cfg']},
 

src/p/y/pythia-0.8.1.11/setup.py   pythia(Download)
 
try:
    from merlin import setup, find_packages
 
except (ImportError, AssertionError):
 
except AssertionError:
    from merlin import setup, find_packages
 
 
 
    zip_safe = False,
    packages = find_packages(),
    include_package_data = True,