#NEWLINE# def copy_extensions_to_source( self ) : #NEWLINE# #INDENT# build_py = self . get_finalized_command ( 'build_py' ) #NEWLINE# for ext in self . extensions : #NEWLINE# #INDENT# fullname = self . get_ext_fullname ( ext . name ) #NEWLINE# filename = self . get_ext_filename ( fullname ) #NEWLINE# modpath = fullname . split ( '.' ) #NEWLINE# package = '.' . join ( modpath [ : ( - 1 ) ] ) #NEWLINE# package_dir = build_py . get_package_dir ( package ) #NEWLINE# dest_filename = os . path . join ( dest_filename , os . path . basename ( filename ) ) #NEWLINE# src_filename = os . path . join ( self . build_lib , filename ) #NEWLINE# copy_file ( src_filename , dest_filename , verbose = self . verbose , dry_run = self . dry_run ) #NEWLINE# if ext . _needs_stub : #NEWLINE# #INDENT# self . write_stub ( ( package_dir or os . curdir ) , ext , True )