<s> from __future__ import with_statement <EOL> import os . path <EOL> try : <EOL> from setuptools import setup <EOL> except ImportError : <EOL> from distutils . core import setup <EOL> extra = { '<STR_LIT>' : [ "<STR_LIT>" ] } <EOL> else : <EOL> extra = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> } , <EOL> } <EOL> def get_version ( fname = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) ) : <EOL> with open ( fname ) as f : <EOL> for line in f : <EOL> if line . startswith ( '<STR_LIT>' ) : <EOL> return eval ( line . split ( '<STR_LIT:=>' ) [ - <NUM_LIT:1> ] ) <EOL> def get_long_description ( ) : <EOL> descr = [ ] <EOL> for fname in ( '<STR_LIT>' , ) : <EOL> with open ( fname ) as f : <EOL> descr . append ( f . read ( ) ) <EOL> return '<STR_LIT>' . join ( descr ) <EOL> setup ( <EOL> name = "<STR_LIT>" , <EOL> license = "<STR_LIT>" , <EOL> version = get_version ( ) , <EOL> description = "<STR_LIT>" , <EOL> long_description = get_long_description ( ) , <EOL> author = "<STR_LIT>" , <EOL> author_email = "<STR_LIT>" , <EOL> url = "<STR_LIT>" , <EOL> packages = [ "<STR_LIT>" , "<STR_LIT>" , "<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> "<STR_LIT>" , <EOL> ] , <EOL> ** extra ) </s>
