<s> import os , sys , glob , platform <EOL> from setuptools import setup , find_packages <EOL> if sys . version_info < ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> with open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' , '<STR_LIT>' ) ) as fh : <EOL> exec ( compile ( fh . read ( ) , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> scripts = [ ] <EOL> for module in os . listdir ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' , '<STR_LIT>' ) ) : <EOL> if module == '<STR_LIT>' or module [ - <NUM_LIT:3> : ] != '<STR_LIT>' : <EOL> continue <EOL> module = module [ : - <NUM_LIT:3> ] <EOL> script = module . replace ( '<STR_LIT:_>' , '<STR_LIT:->' ) <EOL> scripts . append ( "<STR_LIT>" . format ( s = script , m = module ) ) <EOL> dependencies = [ line . rstrip ( ) for line in open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) ] <EOL> test_dependencies = [ line . rstrip ( ) for line in open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) ] <EOL> dxfs_dependencies = [ line . rstrip ( ) for line in open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) ] <EOL> readline_dependencies = [ line . rstrip ( ) for line in open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) ] <EOL> backports_dependencies = [ line . rstrip ( ) for line in open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) ] <EOL> if platform . system ( ) == '<STR_LIT>' : <EOL> dependencies = [ d for d in dependencies if not ( d . startswith ( '<STR_LIT>' ) or d . startswith ( '<STR_LIT>' ) ) ] <EOL> dependencies . append ( "<STR_LIT>" ) <EOL> if platform . system ( ) == '<STR_LIT>' : <EOL> try : <EOL> import readline <EOL> if '<STR_LIT>' in readline . __doc__ : <EOL> dependencies . extend ( readline_dependencies ) <EOL> except ImportError : <EOL> dependencies . extend ( readline_dependencies ) <EOL> if sys . version_info [ <NUM_LIT:0> ] < <NUM_LIT:3> : <EOL> dependencies . extend ( backports_dependencies ) <EOL> if platform . system ( ) != '<STR_LIT>' : <EOL> dependencies . extend ( dxfs_dependencies ) <EOL> if '<STR_LIT>' in os . environ : <EOL> dependencies . extend ( test_dependencies ) <EOL> template_files = [ ] <EOL> for directory , subdirectories , files in os . walk ( "<STR_LIT>" ) : <EOL> directory = directory [ len ( "<STR_LIT>" ) : ] <EOL> template_files . extend ( [ os . path . join ( directory , _file ) for _file in files ] ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = version , <EOL> description = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> url = '<STR_LIT>' , <EOL> zip_safe = False , <EOL> license = '<STR_LIT>' , <EOL> packages = find_packages ( exclude = [ '<STR_LIT:test>' ] ) , <EOL> package_data = { '<STR_LIT>' : template_files } , <EOL> scripts = glob . glob ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' , '<STR_LIT>' ) ) , <EOL> entry_points = { <EOL> "<STR_LIT>" : scripts , <EOL> } , <EOL> install_requires = dependencies , <EOL> tests_require = test_dependencies , <EOL> test_suite = "<STR_LIT:test>" , <EOL> classifiers = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> ) </s>
