tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[\¬Qc@sRdZddlZddlmZddlmZdZdefd„ƒYZdS(sdistutils.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 servercCstjjtjjdƒdƒS(sReturns rc file path.t~s.pypirc(tostpathtjoint
expanduser(tself((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pyt _get_rc_file&scCsd|jƒ}tjtj|tjtjBdƒdƒ}z|jt||fƒWd|jƒXdS(sCreates a default .pypirc file.i€twN(    R RtfdopentopentO_CREATtO_WRONLYtwritetDEFAULT_PYPIRCtclose(R
tusernametpasswordtrctf((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pyt _store_pypirc*s
 +c Cs3|jƒ}tjj|ƒr/|jd|ƒ|jp>|j}tƒ}|j|ƒ|j    ƒ}d|kr¨|j
ddƒ}g|j dƒD]$}|j ƒdkr‘|j ƒ^q‘}|gkræd|krßdg}qæiSnxC|D]´}i|d6}|j
|dƒ|d<xdd    |jfd
|j fdfD]A\}    }
|j||    ƒro|j
||    ƒ||    <q8|
||    <q8W|d|ks|d    |krí|SqíWq/d |kr/d }|j|d    ƒrá|j
|d    ƒ}n    |j}i|j
|dƒd6|j
|d ƒd 6|d    6|d6|j d
6SniS(sReads the .pypirc file.sUsing PyPI login from %st    distutilss index-serverss
tRtserverRt
repositorytrealmRs server-loginN(spasswordN(R RRtexiststannounceRtDEFAULT_REPOSITORYRtreadtsectionstgettsplittstript DEFAULT_REALMtNonet
has_option( R
RRtconfigR"t index_serversRt_serverstcurrenttkeytdefault((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pyt _read_pypirc3sP        $                cCsd|_d|_d|_dS(sInitialize options.iN(R'RRt show_response(R
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pytinitialize_optionsis        cCs@|jdkr|j|_n|jdkr<|j|_ndS(sFinalizes options.N(RR'R RR&(R
((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pytfinalize_optionsosN(s show-responseNs&display full response text from server(t__name__t
__module__t__doc__R R&R'RRt user_optionstboolean_optionsR RR/R1R2(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pyRs                         6    (R5RRt distutils.cmdRRR(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/config.pyt<module>s