<s> import re <EOL> import os <EOL> import sys <EOL> from setuptools import setup <EOL> name = '<STR_LIT>' <EOL> package = '<STR_LIT>' <EOL> description = '<STR_LIT>' <EOL> url = '<STR_LIT>' <EOL> author = '<STR_LIT>' <EOL> author_email = '<STR_LIT>' <EOL> license = '<STR_LIT>' <EOL> def get_version ( package ) : <EOL> """<STR_LIT>""" <EOL> init_py = open ( os . path . join ( package , '<STR_LIT>' ) ) . read ( ) <EOL> return re . search ( "<STR_LIT>" , <EOL> init_py , re . MULTILINE ) . group ( <NUM_LIT:1> ) <EOL> def get_packages ( package ) : <EOL> """<STR_LIT>""" <EOL> return [ dirpath <EOL> for dirpath , dirnames , filenames in os . walk ( package ) <EOL> if os . path . exists ( os . path . join ( dirpath , '<STR_LIT>' ) ) ] <EOL> def get_package_data ( package ) : <EOL> """<STR_LIT>""" <EOL> walk = [ ( dirpath . replace ( package + os . sep , '<STR_LIT>' , <NUM_LIT:1> ) , filenames ) <EOL> for dirpath , dirnames , filenames in os . walk ( package ) <EOL> if not os . path . exists ( os . path . join ( dirpath , '<STR_LIT>' ) ) ] <EOL> filepaths = [ ] <EOL> for base , filenames in walk : <EOL> filepaths . extend ( [ os . path . join ( base , filename ) <EOL> for filename in filenames ] ) <EOL> return { package : filepaths } <EOL> version = get_version ( package ) <EOL> if sys . argv [ - <NUM_LIT:1> ] == '<STR_LIT>' : <EOL> if os . system ( "<STR_LIT>" ) : <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> os . system ( "<STR_LIT>" ) <EOL> os . system ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" . format ( version ) ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> setup ( <EOL> name = name , <EOL> version = version , <EOL> url = url , <EOL> license = license , <EOL> description = description , <EOL> author = author , <EOL> author_email = author_email , <EOL> packages = get_packages ( package ) , <EOL> package_data = get_package_data ( package ) , <EOL> install_requires = [ ] , <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> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> ) </s>
