<s> """<STR_LIT>""" <EOL> import os <EOL> import sys <EOL> import distutils . core <EOL> import distutils . filelist <EOL> from distutils . core import Command as _Command <EOL> from distutils . util import convert_path <EOL> import setuptools . version <EOL> from setuptools . extension import Extension <EOL> from setuptools . dist import Distribution , Feature , _get_unpatched <EOL> from setuptools . depends import Require <EOL> __all__ = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> __version__ = setuptools . version . __version__ <EOL> bootstrap_install_from = None <EOL> run_2to3_on_doctests = True <EOL> lib2to3_fixer_packages = [ '<STR_LIT>' ] <EOL> def find_packages ( where = '<STR_LIT:.>' , exclude = ( ) ) : <EOL> """<STR_LIT>""" <EOL> out = [ ] <EOL> stack = [ ( convert_path ( where ) , '<STR_LIT>' ) ] <EOL> while stack : <EOL> where , prefix = stack . pop ( <NUM_LIT:0> ) <EOL> for name in os . listdir ( where ) : <EOL> fn = os . path . join ( where , name ) <EOL> looks_like_package = ( <EOL> '<STR_LIT:.>' not in name <EOL> and os . path . isdir ( fn ) <EOL> and os . path . isfile ( os . path . join ( fn , '<STR_LIT>' ) ) <EOL> ) <EOL> if looks_like_package : <EOL> out . append ( prefix + name ) <EOL> stack . append ( ( fn , prefix + name + '<STR_LIT:.>' ) ) <EOL> for pat in list ( exclude ) + [ '<STR_LIT>' ] : <EOL> from fnmatch import fnmatchcase <EOL> out = [ item for item in out if not fnmatchcase ( item , pat ) ] <EOL> return out <EOL> setup = distutils . core . setup <EOL> _Command = _get_unpatched ( _Command ) <EOL> class Command ( _Command ) : <EOL> __doc__ = _Command . __doc__ <EOL> command_consumes_arguments = False <EOL> def __init__ ( self , dist , ** kw ) : <EOL> _Command . __init__ ( self , dist ) <EOL> for k , v in kw . items ( ) : <EOL> setattr ( self , k , v ) <EOL> def reinitialize_command ( self , command , reinit_subcommands = <NUM_LIT:0> , ** kw ) : <EOL> cmd = _Command . reinitialize_command ( self , command , reinit_subcommands ) <EOL> for k , v in kw . items ( ) : <EOL> setattr ( cmd , k , v ) <EOL> return cmd <EOL> distutils . core . Command = Command <EOL> def findall ( dir = os . curdir ) : <EOL> """<STR_LIT>""" <EOL> all_files = [ ] <EOL> for base , dirs , files in os . walk ( dir ) : <EOL> if base == os . curdir or base . startswith ( os . curdir + os . sep ) : <EOL> base = base [ <NUM_LIT:2> : ] <EOL> if base : <EOL> files = [ os . path . join ( base , f ) for f in files ] <EOL> all_files . extend ( filter ( os . path . isfile , files ) ) <EOL> return all_files <EOL> distutils . filelist . findall = findall <EOL> _dont_write_bytecode = getattr ( sys , '<STR_LIT>' , <EOL> bool ( os . environ . get ( "<STR_LIT>" ) ) ) </s>
