<s> from distutils . util import convert_path <EOL> from django_facebook import __version__ , __maintainer__ , __email__ <EOL> from fnmatch import fnmatchcase <EOL> import os <EOL> import sys <EOL> try : <EOL> from setuptools import setup , find_packages <EOL> except ImportError : <EOL> from distutils . core import setup , find_packages <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>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<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 ( <EOL> ( fn , prefix + name + '<STR_LIT:/>' , package , 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> '<STR_LIT>' ] <EOL> package_data = find_package_data ( exclude_directories = excluded_directories ) <EOL> license_text = open ( '<STR_LIT>' ) . read ( ) <EOL> long_description = open ( '<STR_LIT>' ) . read ( ) <EOL> if '<STR_LIT>' in __version__ : <EOL> development_status = '<STR_LIT>' <EOL> else : <EOL> development_status = '<STR_LIT>' <EOL> CLASSIFIERS = [ <EOL> development_status , <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> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> DESCRIPTION = """<STR_LIT>""" <EOL> download_url = '<STR_LIT>' % __version__ <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = __version__ , <EOL> url = '<STR_LIT>' , <EOL> author = __maintainer__ , <EOL> author_email = __email__ , <EOL> license = license_text , <EOL> packages = find_packages ( ) , <EOL> package_data = package_data , <EOL> description = DESCRIPTION , <EOL> long_description = long_description , <EOL> classifiers = CLASSIFIERS , <EOL> install_requires = [ '<STR_LIT>' ] , <EOL> tests_require = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] , <EOL> test_suite = '<STR_LIT>' , <EOL> zip_safe = False , <EOL> ) </s>
