#NEWLINE# def _get_all_ns_packages( self ) : #NEWLINE# #INDENT# 'Return sorted list of all package namespaces' #NEWLINE# nsp = set ( ) #NEWLINE# for pkg in ( self . distribution . namespace_packages or [ ] ) : #NEWLINE# #INDENT# pkg = pkg . split ( '.' ) #NEWLINE# while pkg : #NEWLINE# #INDENT# nsp . add ( '.' . join ( pkg ) ) #NEWLINE# pkg . pop ( ) #NEWLINE# #UNINDENT# #UNINDENT# return sorted ( nsp )