#NEWLINE# def get_default_scheme( pkg_name , py_version_short = None , prefix = None ) : #NEWLINE# #INDENT# if ( py_version_short is None ) : #NEWLINE# #INDENT# py_version_short = '.' . join ( [ str ( i ) for i in sys . version_info [ : 2 ] ] ) #NEWLINE# #UNINDENT# if ( prefix is None ) : #NEWLINE# #INDENT# prefix = sys . exec_prefix #NEWLINE# #UNINDENT# ( scheme , _ ) = get_scheme ( sys . platform ) #NEWLINE# scheme [ 'prefix' ] = scheme [ 'eprefix' ] = prefix #NEWLINE# scheme [ 'pkgname' ] = pkg_name #NEWLINE# scheme [ 'py_version_short' ] = py_version_short #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for k in scheme : #NEWLINE# #INDENT# ret [ k ] = subst_vars ( scheme [ k ] , scheme ) #NEWLINE# #UNINDENT# return ret