<s> try : <EOL> import setuptools <EOL> except ImportError : <EOL> import distutils . core as setuptools <EOL> import os <EOL> import re <EOL> import sys <EOL> import docker_registry . core as core <EOL> ver = sys . version_info <EOL> if ver < ( <NUM_LIT:2> , <NUM_LIT:6> ) : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> requirements_txt = open ( '<STR_LIT>' ) <EOL> requirements = [ line for line in requirements_txt ] <EOL> if '<STR_LIT>' in os . environ and os . environ [ '<STR_LIT>' ] . lower ( ) == '<STR_LIT>' : <EOL> loose = [ ] <EOL> for item in requirements : <EOL> d = re . match ( r'<STR_LIT>' , item ) <EOL> if d : <EOL> d = list ( d . groups ( ) ) <EOL> name = d . pop ( <NUM_LIT:0> ) <EOL> version = d . pop ( <NUM_LIT:0> ) <EOL> item = '<STR_LIT>' % ( name , int ( version ) , int ( version ) + <NUM_LIT:1> ) <EOL> loose . insert ( <NUM_LIT:0> , item ) <EOL> requirements = loose <EOL> setuptools . setup ( <EOL> name = core . __title__ , <EOL> version = core . __version__ , <EOL> author = core . __author__ , <EOL> author_email = core . __email__ , <EOL> maintainer = core . __maintainer__ , <EOL> maintainer_email = core . __email__ , <EOL> keywords = '<STR_LIT>' , <EOL> url = core . __url__ , <EOL> description = core . __description__ , <EOL> long_description = open ( '<STR_LIT>' ) . read ( ) , <EOL> download_url = core . __download__ , <EOL> classifiers = [ '<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> platforms = [ '<STR_LIT>' ] , <EOL> license = open ( '<STR_LIT>' ) . read ( ) , <EOL> namespace_packages = [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> packages = [ '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] , <EOL> install_requires = requirements , <EOL> zip_safe = True , <EOL> tests_require = open ( '<STR_LIT>' ) . read ( ) , <EOL> test_suite = '<STR_LIT>' <EOL> ) </s>
