<s> from setuptools import setup <EOL> import re <EOL> import os <EOL> import sys <EOL> PACKAGE = '<STR_LIT>' <EOL> base_dir = os . path . dirname ( __file__ ) <EOL> module = os . path . join ( base_dir , PACKAGE , '<STR_LIT>' ) <EOL> version = eval ( re . search ( '<STR_LIT>' , open ( module ) . read ( ) ) . group ( <NUM_LIT:1> ) ) <EOL> version_str = '<STR_LIT>' % ( version [ <NUM_LIT:0> ] , version [ <NUM_LIT:1> ] , version [ <NUM_LIT:2> ] ) <EOL> if sys . argv [ - <NUM_LIT:1> ] == '<STR_LIT>' : <EOL> os . system ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" % ( version , version ) ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> f = open ( '<STR_LIT>' , '<STR_LIT:r>' ) <EOL> lines = f . readlines ( ) <EOL> requirements = [ l . strip ( ) . strip ( '<STR_LIT:\n>' ) for l in lines if l . strip ( ) and not l . strip ( ) . startswith ( '<STR_LIT:#>' ) ] <EOL> setup ( <EOL> name = PACKAGE , <EOL> version = version_str , <EOL> url = '<STR_LIT>' , <EOL> license = '<STR_LIT>' , <EOL> description = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> packages = [ PACKAGE ] , <EOL> package_dir = { PACKAGE : PACKAGE } , <EOL> include_package_data = True , <EOL> test_suite = '<STR_LIT>' , <EOL> install_requires = requirements , <EOL> ) </s>
