Ñò 6ÕUc@s^dZddkZddkZddklZddklZdZdefd„ƒYZdS(sdistutils.pypirc Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. iÿÿÿÿN(t ConfigParser(tCommandsE[distutils] index-servers = pypi [pypi] username:%s password:%s t PyPIRCCommandcBsueZdZdZdZd Zd ZdddefdgZdgZ d„Z d „Z d „Z d „Z d „ZRS(s;Base command that knows how to handle the .pypirc file shttp://pypi.python.org/pypitpypis repository=trsurl of repository [default: %s]s show-responses&display full response text from servercCstiitiidƒdƒS(sReturns rc file path.t~s.pypirc(tostpathtjoint expanduser(tself((s&/usr/lib/python2.6/distutils/config.pyt _get_rc_file'sc Csr|iƒ}t|dƒ}z|it||fƒWd|iƒXyti|dƒWntj onXdS(sCreates a default .pypirc file.twNi€(R topentwritetDEFAULT_PYPIRCtcloseRtchmodtOSError(R tusernametpasswordtrctf((s&/usr/lib/python2.6/distutils/config.pyt _store_pypirc+s  c Csx|iƒ}tii|ƒoU|id|ƒ|ip|i}|ip|i}t ƒ}|i |ƒ|i ƒ}d|joc|i ddƒ}g}|i dƒD]*}|iƒdjo||iƒq«q«~} | gjo"d|jo dg} q hSnx`| D]Ì}h|d6} |i |dƒ| d<|i |d ƒ| d s