#NEWLINE# @ require_c_compiler ( 'distutils' ) #NEWLINE# def test_multiple_extensions( self ) : #NEWLINE# #INDENT# self . top_node . make_node ( 'foo.c' ) . write ( ( DUMMY_C % { #NEWLINE# #INDENT# 'name' : 'foo' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . top_node . make_node ( 'bar.c' ) . write ( ( DUMMY_C % { #NEWLINE# #INDENT# 'name' : 'bar' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# builder = DistutilsBuilder ( ) #NEWLINE# extensions = [ Extension ( 'bar' , [ 'bar.c' ] ) , Extension ( 'foo' , [ 'foo.c' ] ) ] #NEWLINE# for extension in builder : #NEWLINE# #INDENT# builder . build_extension ( extension )