• File: config.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/distutils/__pycache__/config.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 3.02 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~d@s8ddlZddlmZddlmZdZGdddeZdS)N)RawConfigParser)CommandzE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
c@sdeZdZdZdZdZdZdddefdgZdgZd	d
Z	ddZ
d
dZddZddZ
ddZdS)
PyPIRCCommandzhttps://upload.pypi.org/legacy/pypiNzrepository=rzurl of repository [default: %s])z
show-responseNz&display full response text from serverz
show-responsecCstjtjddS)N~z.pypirc)ospathjoin
expanduser)selfr
5/opt/alt/python37/lib64/python3.7/distutils/config.py_get_rc_file&szPyPIRCCommand._get_rc_filec	CsH|}tt|tjtjBdd}|t||fWdQRXdS)Niw)rrfdopenopenO_CREATO_WRONLYwriteDEFAULT_PYPIRC)rusernamepasswordrcfr
r
r
_store_pypirc*s zPyPIRCCommand._store_pypirccCs|}tj|r|d||jp.|j}t}|||	}d|krF|
dd}dd|dD}|gkrd|krdg}niSx|D]}d|i}|
|d	|d	<xHd
|jfd|jfdfD].\}	}
|
||	r|
||	||	<q|
||	<qW|dkr"||jdfkr"|j|d
<|S|d|ks<|d
|kr|SqWnRd
|krd
}|
|d
rp|
|d
}n|j}|
|d	|
|d|||jdSiS)NzUsing PyPI login from %sZ	distutilsz
index-serverscSs g|]}|dkr|qS))strip).0serverr
r
r
<listcomp>=sz.PyPIRCCommand._read_pypirc.<locals>.<listcomp>
rrr
repositoryrealm)rNzserver-loginr)rrr"rr#)rrr	existsZannouncer"DEFAULT_REPOSITORYrreadsectionsgetsplit
DEFAULT_REALMZ
has_option)rrr"Zconfigr'Z
index_serversZ_serversrZcurrentkeydefaultr
r
r_read_pypirc0sV









zPyPIRCCommand._read_pypirccCs8ddl}|dd}||ddd}||S)Nrzcontent-typez
text/plaincharsetascii)cgiZ	getheaderZparse_headerr(r&decode)rZresponser1Zcontent_typeencodingr
r
r_read_pypi_responsepsz!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)Nr)r"r#Z
show_response)rr
r
rinitialize_optionswsz PyPIRCCommand.initialize_optionscCs(|jdkr|j|_|jdkr$|j|_dS)N)r"r%r#r*)rr
r
rfinalize_options}s

zPyPIRCCommand.finalize_options)__name__
__module____qualname__r%r*r"r#Zuser_optionsZboolean_optionsrrr-r4r5r6r
r
r
rrs@r)rZconfigparserrZ
distutils.cmdrrrr
r
r
r<module>s