Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/distutils/
Upload File :
Current File : //usr/lib/python2.7/distutils/config.pyc


|_c@sRdZddlZddlmZddlmZdZdefdYZdS(sdistutils.pypirc

Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
iN(tConfigParser(tCommandsE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
t
PyPIRCCommandcBsueZdZdZdZd
Zd
ZdddefdgZdgZ	dZ
d	Zd
ZdZ
dZRS(s;Base command that knows how to handle the .pypirc file
    shttp://pypi.python.org/pypitpypisrepository=trsurl of repository [default: %s]s
show-responses&display full response text from servercCstjjtjjddS(sReturns rc file path.t~s.pypirc(tostpathtjoint
expanduser(tself((s&/usr/lib/python2.7/distutils/config.pyt_get_rc_file&scCs[|j}tjtj|tjtjBdd}|jt||fWdQXdS(sCreates a default .pypirc file.itwN(RRtfdopentopentO_CREATtO_WRONLYtwritetDEFAULT_PYPIRC(R
tusernametpasswordtrctfp((s&/usr/lib/python2.7/distutils/config.pyt
_store_pypirc*s.cCs3|j}tjj|r/|jd||jp>|j}t}|j||j	}d|kr|j
dd}g|jdD]$}|jdkr|j^q}|gkrd|krdg}qiSnxC|D]}i|d6}|j
|d|d<xdd	|jfd
|j
fdfD]A\}	}
|j||	ro|j
||	||	<q8|
||	<q8W|d|ks|d	|kr|SqWq/d|kr/d}|j|d	r|j
|d	}n	|j}i|j
|dd6|j
|dd6|d	6|d6|j
d
6SniS(sReads the .pypirc file.sUsing PyPI login from %st	distutilss
index-serverss
tRtserverRt
repositorytrealmRsserver-loginN(spasswordN(RRRtexiststannounceRtDEFAULT_REPOSITORYRtreadtsectionstgettsplittstript
DEFAULT_REALMtNonet
has_option(R
RRtconfigR!t
index_serversRt_serverstcurrenttkeytdefault((s&/usr/lib/python2.7/distutils/config.pyt_read_pypirc0sP	
$

		cCsd|_d|_d|_dS(sInitialize options.iN(R&RRt
show_response(R
((s&/usr/lib/python2.7/distutils/config.pytinitialize_optionsfs		cCs@|jdkr|j|_n|jdkr<|j|_ndS(sFinalizes options.N(RR&RRR%(R
((s&/usr/lib/python2.7/distutils/config.pytfinalize_optionslsN(s
show-responseNs&display full response text from server(t__name__t
__module__t__doc__RR%R&RRtuser_optionstboolean_optionsRRR.R0R1(((s&/usr/lib/python2.7/distutils/config.pyRs 					6	(R4RRt
distutils.cmdRRR(((s&/usr/lib/python2.7/distutils/config.pyt<module>s