<s> import subprocess <EOL> import sys <EOL> from setuptools import setup , find_packages <EOL> install_requires = [ ] <EOL> dependency_links = [ ] <EOL> with open ( '<STR_LIT>' ) as f : <EOL> for line in f . read ( ) . splitlines ( ) : <EOL> if '<STR_LIT>' in line : <EOL> dependency_links . append ( line ) <EOL> else : <EOL> install_requires . append ( line ) <EOL> cmd = subprocess . Popen ( "<STR_LIT>" , shell = True , stdout = subprocess . PIPE ) <EOL> out , err = cmd . communicate ( ) <EOL> if err : <EOL> print err <EOL> sys . exit ( - <NUM_LIT:1> ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = '<STR_LIT>' % out . strip ( ) , <EOL> long_description = __doc__ , <EOL> url = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> packages = find_packages ( ) , <EOL> include_package_data = True , <EOL> zip_safe = False , <EOL> install_requires = install_requires , <EOL> dependency_links = dependency_links <EOL> ) </s>
