parameters: (manifest)
return_statement: return packages
docstring: Determine packages and subpackages
docstring_summary: Determine packages and subpackages
docstring_tokens: Determine packages and subpackages
function: def find_packages(manifest):
      """ Determine packages and subpackages """
      packages = {}
      collect = manifest.get('packages.collect', '').split()
      lib = manifest.get('packages.lib', '.')
      try:
          sep = _os.path.sep
      except AttributeError:
          sep = _os.path.join('1', '2')[1:-1]
      for root in collect:
          for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
              if dirpath.find('.svn') >= 0 or dirpath.find('.git') >= 0:
                  continue
              if '__init__.py' in filenames:
                  packages[
                      _os.path.normpath(dirpath).replace(sep, '.')
                  ] = None
      packages = list(packages.keys())
      packages.sort()
      return packages
function_tokens: def find_packages ( manifest ) : packages = { } collect = manifest . get ( 'packages.collect' , '' ) . split ( ) lib = manifest . get ( 'packages.lib' , '.' ) try : sep = _os . path . sep except AttributeError : sep = _os . path . join ( '1' , '2' ) [ 1 : - 1 ] for root in collect : for dirpath , _ , filenames in _shell . walk ( _os . path . join ( lib , root ) ) : if dirpath . find ( '.svn' ) >= 0 or dirpath . find ( '.git' ) >= 0 : continue if '__init__.py' in filenames : packages [ _os . path . normpath ( dirpath ) . replace ( sep , '.' ) ] = None packages = list ( packages . keys ( ) ) packages . sort ( ) return packages