<s> from distutils . core import setup <EOL> from distutils . command . build_py import build_py as _build_py <EOL> import glob , sys , os . path <EOL> class build_py26 ( _build_py ) : <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> _build_py . __init__ ( self , * args , ** kwargs ) <EOL> from lib2to3 import refactor <EOL> self . rtool = refactor . RefactoringTool ( <EOL> refactor . get_fixers_from_package ( '<STR_LIT>' ) ) <EOL> def find_package_modules ( self , package , package_dir ) : <EOL> res = _build_py . find_package_modules ( self , package , package_dir ) <EOL> if package == '<STR_LIT>' : <EOL> if sys . version_info < ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> res . append ( ( package , '<STR_LIT>' , <EOL> os . path . join ( os . path . dirname ( package_dir ) , <EOL> '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> badio = ( '<STR_LIT>' , '<STR_LIT>' , os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> if badio in res : <EOL> res . remove ( badio ) <EOL> res . append ( ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> return res <EOL> def copy_file ( self , source , target , preserve_mode = True ) : <EOL> if source . endswith ( '<STR_LIT>' ) and not '<STR_LIT>' in source : <EOL> with open ( source , '<STR_LIT>' ) as input : <EOL> nval = self . rtool . refactor_string ( input . read ( ) , source ) <EOL> with open ( target , '<STR_LIT>' ) as output : <EOL> output . write ( <EOL> '<STR_LIT>' ) <EOL> output . write ( '<STR_LIT>' ) <EOL> output . write ( str ( nval ) ) <EOL> else : <EOL> _build_py . copy_file ( self , source , target , <EOL> preserve_mode = preserve_mode ) <EOL> setup ( <EOL> name = "<STR_LIT>" , <EOL> version = "<STR_LIT>" , <EOL> packages = [ '<STR_LIT>' ] , <EOL> scripts = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> package_dir = { '<STR_LIT>' : '<STR_LIT>' } , <EOL> package_data = { '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> ] } , <EOL> data_files = [ <EOL> ( '<STR_LIT>' , glob . glob ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , glob . glob ( '<STR_LIT>' ) ) , <EOL> ] , <EOL> cmdclass = { '<STR_LIT>' : build_py26 } if sys . version_info [ <NUM_LIT:0> ] < <NUM_LIT:3> else { } , <EOL> author = "<STR_LIT>" , <EOL> author_email = "<STR_LIT>" , <EOL> description = '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> classifiers = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> license = "<STR_LIT>" , <EOL> keywords = "<STR_LIT>" , <EOL> url = "<STR_LIT>" , <EOL> download_url = "<STR_LIT>" , <EOL> requires = '<STR_LIT>' , <EOL> ) </s>
