<s> """<STR_LIT>""" <EOL> import glob <EOL> import os <EOL> import sys <EOL> try : <EOL> from setuptools import find_packages , setup , Command <EOL> except ImportError : <EOL> from distutils . core import find_packages , setup , Command <EOL> try : <EOL> from setuptools . commands . bdist_rpm import bdist_rpm <EOL> except ImportError : <EOL> from distutils . command . bdist_rpm import bdist_rpm <EOL> sys . path . insert ( <NUM_LIT:0> , '<STR_LIT:.>' ) <EOL> import artifacts <EOL> class BdistRPMCommand ( bdist_rpm ) : <EOL> """<STR_LIT>""" <EOL> def _make_spec_file ( self ) : <EOL> """<STR_LIT>""" <EOL> if issubclass ( BdistRPMCommand , object ) : <EOL> spec_file = super ( BdistRPMCommand , self ) . _make_spec_file ( ) <EOL> else : <EOL> spec_file = bdist_rpm . _make_spec_file ( self ) <EOL> if sys . version_info [ <NUM_LIT:0> ] < <NUM_LIT:3> : <EOL> python_package = '<STR_LIT>' <EOL> else : <EOL> python_package = '<STR_LIT>' <EOL> description = [ ] <EOL> summary = '<STR_LIT>' <EOL> in_description = False <EOL> python_spec_file = [ ] <EOL> for index , line in enumerate ( spec_file ) : <EOL> if line . startswith ( '<STR_LIT>' ) : <EOL> summary = line <EOL> elif line . startswith ( '<STR_LIT>' ) : <EOL> line = '<STR_LIT>' . format ( python_package ) <EOL> elif line . startswith ( '<STR_LIT>' ) : <EOL> if python_package == '<STR_LIT>' : <EOL> line = line . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> elif line . startswith ( '<STR_LIT>' ) : <EOL> in_description = True <EOL> elif line . startswith ( '<STR_LIT>' ) : <EOL> line = '<STR_LIT>' . format ( <EOL> python_package ) <EOL> elif line . startswith ( '<STR_LIT>' ) : <EOL> in_description = False <EOL> python_spec_file . append ( <EOL> '<STR_LIT>' . format ( python_package ) ) <EOL> python_spec_file . append ( '<STR_LIT>' . format ( summary ) ) <EOL> python_spec_file . append ( '<STR_LIT>' ) <EOL> python_spec_file . append ( <EOL> '<STR_LIT>' . format ( python_package ) ) <EOL> python_spec_file . extend ( description ) <EOL> elif in_description : <EOL> if not description and not line : <EOL> continue <EOL> description . append ( line ) <EOL> python_spec_file . append ( line ) <EOL> return python_spec_file <EOL> artifacts_version = artifacts . __version__ <EOL> if '<STR_LIT>' in sys . argv : <EOL> artifacts_version = '<STR_LIT>' . format ( artifacts_version ) <EOL> artifacts_description = ( <EOL> '<STR_LIT>' ) <EOL> artifacts_long_description = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = artifacts_version , <EOL> description = artifacts_description , <EOL> long_description = artifacts_long_description , <EOL> license = '<STR_LIT>' , <EOL> url = '<STR_LIT>' , <EOL> maintainer = '<STR_LIT>' , <EOL> maintainer_email = '<STR_LIT>' , <EOL> scripts = [ <EOL> os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] , <EOL> cmdclass = { '<STR_LIT>' : BdistRPMCommand } , <EOL> classifiers = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> packages = find_packages ( '<STR_LIT:.>' , exclude = [ u'<STR_LIT>' , u'<STR_LIT>' , u'<STR_LIT>' ] ) , <EOL> package_dir = { '<STR_LIT>' : '<STR_LIT>' } , <EOL> data_files = [ <EOL> ( '<STR_LIT>' , glob . glob ( os . path . join ( '<STR_LIT>' , '<STR_LIT:*>' ) ) ) , <EOL> ] , <EOL> install_requires = [ <EOL> '<STR_LIT>' , <EOL> ] , <EOL> ) </s>
