<s> from __future__ import print_function <EOL> import os <EOL> import sys <EOL> import shutil <EOL> import getpass <EOL> import setuptools <EOL> import pipgh <EOL> argv = sys . argv [ <NUM_LIT:1> : ] <EOL> test_suite = os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if ( '<STR_LIT:test>' in argv and <EOL> ( test_suite == '<STR_LIT>' or ( '<STR_LIT>' in test_suite ) ) ) : <EOL> _q = '<STR_LIT>' <EOL> try : <EOL> answer = raw_input ( _q ) <EOL> except NameError : <EOL> answer = input ( _q ) <EOL> if answer . strip ( ) . lower ( ) != '<STR_LIT:y>' : <EOL> exit ( '<STR_LIT>' ) <EOL> try : <EOL> try : <EOL> username = raw_input ( u'<STR_LIT>' ) <EOL> except NameError : <EOL> username = input ( u'<STR_LIT>' ) <EOL> password = getpass . getpass ( u'<STR_LIT>' ) <EOL> except KeyboardInterrupt : <EOL> exit ( '<STR_LIT>' ) <EOL> os . environ [ '<STR_LIT>' ] = username <EOL> os . environ [ '<STR_LIT>' ] = password <EOL> if '<STR_LIT>' in argv : <EOL> shutil . rmtree ( '<STR_LIT>' % pipgh . __name__ , ignore_errors = True ) <EOL> shutil . rmtree ( '<STR_LIT>' , ignore_errors = True ) <EOL> shutil . rmtree ( '<STR_LIT>' , ignore_errors = True ) <EOL> shutil . rmtree ( '<STR_LIT>' , ignore_errors = True ) <EOL> def pyclean ( path ) : <EOL> for root , drs , fns in os . walk ( path ) : <EOL> pycache = os . path . join ( root , '<STR_LIT>' ) <EOL> shutil . rmtree ( pycache , ignore_errors = True ) <EOL> filtered_fns = filter ( lambda f : f . endswith ( '<STR_LIT>' ) , fns ) <EOL> for fn in filtered_fns : <EOL> _fn = os . path . join ( root , fn ) <EOL> os . remove ( _fn ) <EOL> pyclean ( pipgh . __name__ ) <EOL> pyclean ( '<STR_LIT>' ) <EOL> shutil . rmtree ( '<STR_LIT>' , ignore_errors = True ) <EOL> long_description = """<STR_LIT>""" <EOL> setuptools . setup ( <EOL> name = pipgh . __name__ , <EOL> description = pipgh . __description__ , <EOL> long_description = long_description , <EOL> version = pipgh . __version__ , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> url = '<STR_LIT>' % pipgh . __name__ , <EOL> license = '<STR_LIT>' , <EOL> packages = [ pipgh . __name__ ] , <EOL> test_suite = test_suite , <EOL> entry_points = { <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' . format ( pkg = pipgh . __name__ ) <EOL> ] <EOL> } <EOL> ) </s>
