def each_cy_in_setup(top_dir):
 for (dir_path, f) in each_setup_in_pkg(top_dir):
  text = f.read()
  match = RE_CYTHON.findall(text)
  if match:
   for cy_file in match:
    if ('.' in cy_file):
     parts = cy_file.split('.')
     cy_file = parts[(-1)]
     path = os.path.join(dir_path, *parts[:(-1)])
    else:
     path = dir_path
    full_path = os.path.join(path, cy_file)
    (yield full_path)

def each_cy_in_setup ( top_dir ) : for ( dir_path , f ) in each_setup_in_pkg ( top_dir ) : text = f . read ( ) match = RE_CYTHON . findall ( text ) if match : for cy_file in match : if ( '.' in cy_file ) : parts = cy_file . split ( '.' ) cy_file = parts [ ( - 1 ) ] path = os . path . join ( dir_path , * parts [ : ( - 1 ) ] ) else : path = dir_path full_path = os . path . join ( path , cy_file ) ( yield full_path )
yield path for each cython extension packages setup file .