def getExtensions():
 extensions = []
 if (not sys.platform.startswith('java')):
  for dir in (os.listdir('twisted') + ['']):
   topfiles = os.path.join('twisted', dir, 'topfiles')
   if os.path.isdir(topfiles):
    ns = {}
    setup_py = os.path.join(topfiles, 'setup.py')
    execfile(setup_py, ns, ns)
    if ('extensions' in ns):
     extensions.extend(ns['extensions'])
 return extensions

def getExtensions ( ) : extensions = [ ] if ( not sys . platform . startswith ( 'java' ) ) : for dir in ( os . listdir ( 'twisted' ) + [ '' ] ) : topfiles = os . path . join ( 'twisted' , dir , 'topfiles' ) if os . path . isdir ( topfiles ) : ns = { } setup_py = os . path . join ( topfiles , 'setup.py' ) execfile ( setup_py , ns , ns ) if ( 'extensions' in ns ) : extensions . extend ( ns [ 'extensions' ] ) return extensions
get all extensions from core and all subprojects .