<s> import os <EOL> import sys <EOL> from fnmatch import fnmatchcase <EOL> from distutils . util import convert_path <EOL> from setuptools import setup , find_packages <EOL> version = __import__ ( '<STR_LIT>' ) . get_version ( ) <EOL> standard_exclude = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> standard_exclude_directories = [ <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" <EOL> ] <EOL> def find_package_data ( where = "<STR_LIT:.>" , package = "<STR_LIT>" , exclude = standard_exclude , <EOL> exclude_directories = standard_exclude_directories , <EOL> only_in_packages = True , show_ignored = False ) : <EOL> """<STR_LIT>""" <EOL> out = { } <EOL> stack = [ ( convert_path ( where ) , "<STR_LIT>" , package , only_in_packages ) ] <EOL> while stack : <EOL> where , prefix , package , only_in_packages = stack . pop ( <NUM_LIT:0> ) <EOL> for name in os . listdir ( where ) : <EOL> fn = os . path . join ( where , name ) <EOL> if os . path . isdir ( fn ) : <EOL> bad_name = False <EOL> for pattern in exclude_directories : <EOL> if ( fnmatchcase ( name , pattern ) <EOL> or fn . lower ( ) == pattern . lower ( ) ) : <EOL> bad_name = True <EOL> if show_ignored : <EOL> print >> sys . stderr , ( <EOL> "<STR_LIT>" <EOL> % ( fn , pattern ) ) <EOL> break <EOL> if bad_name : <EOL> continue <EOL> if ( os . path . isfile ( os . path . join ( fn , "<STR_LIT>" ) ) <EOL> and not prefix ) : <EOL> if not package : <EOL> new_package = name <EOL> else : <EOL> new_package = package + "<STR_LIT:.>" + name <EOL> stack . append ( ( fn , "<STR_LIT>" , new_package , False ) ) <EOL> else : <EOL> stack . append ( ( fn , prefix + name + "<STR_LIT:/>" , package , <EOL> only_in_packages ) ) <EOL> elif package or not only_in_packages : <EOL> bad_name = False <EOL> for pattern in exclude : <EOL> if ( fnmatchcase ( name , pattern ) <EOL> or fn . lower ( ) == pattern . lower ( ) ) : <EOL> bad_name = True <EOL> if show_ignored : <EOL> print >> sys . stderr , ( <EOL> "<STR_LIT>" <EOL> % ( fn , pattern ) ) <EOL> break <EOL> if bad_name : <EOL> continue <EOL> out . setdefault ( package , [ ] ) . append ( prefix + name ) <EOL> return out <EOL> excluded_directories = standard_exclude_directories + [ '<STR_LIT>' ] <EOL> package_data = find_package_data ( exclude_directories = excluded_directories ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = version . replace ( '<STR_LIT:U+0020>' , '<STR_LIT:->' ) , <EOL> url = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> description = '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> long_description = open ( '<STR_LIT>' , '<STR_LIT:r>' ) . read ( ) + open ( '<STR_LIT>' , '<STR_LIT:r>' ) . read ( ) + open ( '<STR_LIT>' , '<STR_LIT:r>' ) . read ( ) , <EOL> license = '<STR_LIT>' , <EOL> packages = find_packages ( ) , <EOL> package_data = package_data , <EOL> include_package_data = True , <EOL> install_requires = [ '<STR_LIT>' ] , <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> ] , <EOL> ) </s>
