<s> import os <EOL> from os . path import abspath , join , dirname , isdir , isfile <EOL> from distutils . core import setup <EOL> def find_packages ( where ) : <EOL> def is_package ( path ) : <EOL> return isdir ( path ) and isfile ( join ( path , '<STR_LIT>' ) ) <EOL> pkgs = [ ] <EOL> for dirpath , dirs , _ in os . walk ( where ) : <EOL> for dir_name in dirs : <EOL> pkg_path = join ( dirpath , dir_name ) <EOL> if is_package ( pkg_path ) : <EOL> pkgs . append ( '<STR_LIT:.>' . join ( ( pkg_path . split ( os . sep ) [ <NUM_LIT:1> : ] ) ) ) <EOL> return pkgs <EOL> ROOT_DIR = dirname ( abspath ( __file__ ) ) <EOL> SOURCE_DIR = '<STR_LIT:src>' <EOL> execfile ( join ( ROOT_DIR , '<STR_LIT:src>' , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> package_data = { <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] <EOL> } <EOL> long_description = """<STR_LIT>""" . strip ( ) <EOL> classifiers = """<STR_LIT>""" . strip ( ) . splitlines ( ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = VERSION , <EOL> description = '<STR_LIT>' , <EOL> long_description = long_description , <EOL> license = '<STR_LIT>' , <EOL> keywords = '<STR_LIT>' , <EOL> platforms = '<STR_LIT>' , <EOL> classifiers = classifiers , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> url = '<STR_LIT>' , <EOL> download_url = '<STR_LIT>' , <EOL> package_dir = { '<STR_LIT>' : SOURCE_DIR } , <EOL> packages = find_packages ( SOURCE_DIR ) , <EOL> package_data = package_data , <EOL> options = { '<STR_LIT>' : { '<STR_LIT>' : True } } , <EOL> scripts = [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> requires = [ '<STR_LIT>' ] <EOL> ) </s>
