#NEWLINE# def find_wq_packages( submodule ) : #NEWLINE# #INDENT# '\n    Add submodule prefix to found packages, since the packages within each wq\n    submodule exist at the top level of their respective repositories.\n    ' #NEWLINE# packages = [ 'wq' , submodule ] #NEWLINE# package_dir = { #NEWLINE# #INDENT# submodule : '.' , #NEWLINE# #UNINDENT# } #NEWLINE# for package in find_packages ( ) : #NEWLINE# #INDENT# if ( package . split ( '.' ) [ 0 ] in ( 'wq' , 'tests' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# full_name = ( ( submodule + '.' ) + package ) #NEWLINE# packages . append ( full_name ) #NEWLINE# package_dir [ full_name ] = package . replace ( '.' , os . sep ) #NEWLINE# #UNINDENT# return ( packages , package_dir )