#NEWLINE# def finalize_options( self ) : #NEWLINE# #INDENT# if ( not isinstance ( self . optimize , int ) ) : #NEWLINE# #INDENT# self . optimize = int ( self . optimize ) #NEWLINE# #UNINDENT# self . set_undefined_options ( 'build' , ( 'build_base' , 'build_base' ) ) #NEWLINE# self . reinitialize_command ( 'build' ) . build_base = self . build_base #NEWLINE# self . set_undefined_options ( 'bdist' , ( 'bdist_base' , 'bdist_base' ) , ( 'dist_dir' , 'dist_dir' ) , ( 'plat_name' , 'plat_name' ) ) #NEWLINE# if ( self . pkg_base is None ) : #NEWLINE# #INDENT# self . pkg_base = os . path . join ( self . bdist_base , 'mpkg' ) #NEWLINE# #UNINDENT# if ( self . custom_schemes is None ) : #NEWLINE# #INDENT# self . custom_schemes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# for ( scheme , desc ) in self . custom_schemes . iteritems ( ) : #NEWLINE# #INDENT# if ( 'description' in desc ) : #NEWLINE# #INDENT# self . scheme_descriptions [ scheme ] = desc [ 'description' ] #NEWLINE# #UNINDENT# if ( 'prefix' in desc ) : #NEWLINE# #INDENT# self . scheme_map [ scheme ] = desc [ 'prefix' ] #NEWLINE# #UNINDENT# if ( 'source' in desc ) : #NEWLINE# #INDENT# self . scheme_copy [ scheme ] = desc [ 'source' ] #NEWLINE# #UNINDENT# #UNINDENT# install = self . get_finalized_command ( 'install' ) #NEWLINE# for ( scheme , description ) in INSTALL_SCHEME_DESCRIPTIONS . iteritems ( ) : #NEWLINE# #INDENT# self . scheme_command . setdefault ( scheme , 'install' ) #NEWLINE# self . scheme_descriptions . setdefault ( scheme , description ) #NEWLINE# self . scheme_map . setdefault ( scheme , os . path . realpath ( getattr ( install , ( 'install_' + scheme ) ) ) ) #NEWLINE# #UNINDENT# if tools . is_framework_python ( ) : #NEWLINE# #INDENT# if self . get_scheme_prefix ( 'scripts' ) . startswith ( sys . prefix ) : #NEWLINE# #INDENT# self . scheme_map [ 'scripts' ] = '/usr/local/bin' #NEWLINE# #UNINDENT# if self . get_scheme_prefix ( 'data' ) . startswith ( sys . prefix ) : #NEWLINE# #INDENT# self . scheme_map [ 'data' ] = '/usr/local/share' #NEWLINE# #UNINDENT# #UNINDENT# self . finalize_package_data ( )