#NEWLINE# def build_extensions( self ) : #NEWLINE# #INDENT# self . check_extensions_list ( extension . extensions ) #NEWLINE# for extension in self . extensions : #NEWLINE# #INDENT# target_ext = '.c' #NEWLINE# patchedsrc = [ ] #NEWLINE# for source in extension . sources : #NEWLINE# #INDENT# ( root , ext ) = os . path . splitext ( source ) #NEWLINE# if ( ext == '.pyx' ) : #NEWLINE# #INDENT# patchedsrc . append ( ( root + target_ext ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# patchedsrc . append ( source ) #NEWLINE# #UNINDENT# #UNINDENT# extension . sources = patchedsrc #NEWLINE# self . build_extension ( extension )