<s> """<STR_LIT>""" <EOL> import os <EOL> import re <EOL> try : <EOL> import setuptools <EOL> except ImportError : <EOL> import distutils . core <EOL> setup = distutils . core . setup <EOL> else : <EOL> setup = setuptools . setup <EOL> def _get_version ( ) : <EOL> path = os . path . join ( PATH_TO_FILE , '<STR_LIT>' , '<STR_LIT>' ) <EOL> version_re = r"<STR_LIT>" <EOL> fo = open ( path ) <EOL> try : <EOL> return re . compile ( version_re , re . S ) . match ( fo . read ( ) ) . group ( <NUM_LIT:1> ) <EOL> finally : <EOL> fo . close ( ) <EOL> def _get_long_description ( ) : <EOL> path = os . path . join ( PATH_TO_FILE , '<STR_LIT>' ) <EOL> fo = open ( path ) <EOL> try : <EOL> return fo . read ( ) <EOL> finally : <EOL> fo . close ( ) <EOL> def parse_requirements ( file_name ) : <EOL> requirements = [ ] <EOL> for line in open ( file_name , '<STR_LIT:r>' ) . read ( ) . split ( '<STR_LIT:\n>' ) : <EOL> if re . match ( r'<STR_LIT>' , line ) : <EOL> continue <EOL> if re . match ( r'<STR_LIT>' , line ) : <EOL> requirements . append ( re . sub ( r'<STR_LIT>' , r'<STR_LIT>' , line ) ) <EOL> elif re . match ( r'<STR_LIT>' , line ) : <EOL> pass <EOL> else : <EOL> requirements . append ( line ) <EOL> return requirements <EOL> def parse_dependency_links ( file_name ) : <EOL> dependency_links = [ ] <EOL> for line in open ( file_name , '<STR_LIT:r>' ) . read ( ) . split ( '<STR_LIT:\n>' ) : <EOL> if re . match ( r'<STR_LIT>' , line ) : <EOL> dependency_links . append ( re . sub ( r'<STR_LIT>' , '<STR_LIT>' , line ) ) <EOL> return dependency_links <EOL> PATH_TO_FILE = os . path . dirname ( __file__ ) <EOL> VERSION = _get_version ( ) <EOL> LONG_DESCRIPTION = _get_long_description ( ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = VERSION , <EOL> url = '<STR_LIT>' , <EOL> license = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> description = '<STR_LIT>' , <EOL> long_description = LONG_DESCRIPTION , <EOL> packages = [ '<STR_LIT>' ] , <EOL> test_suite = '<STR_LIT>' , <EOL> install_requires = parse_requirements ( '<STR_LIT>' ) , <EOL> dependency_links = parse_dependency_links ( '<STR_LIT>' ) , <EOL> classifiers = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> ) </s>
