ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pyo

�
x�_c@@s�dZddlmZddlZddlZddlZddlZddlZddlZddl	mZ
ddlmZddlm
ZddlmZddlmZdd	lmZdd
lmZmZddlmZerddlmZmZmZmZdd
lm Z!nej"d�Z#d�Z$d�Z%ej&d�Z'ej(�j)�dkrve
j*�Z'nyej+�Z,Wne-k
r�ej.Z,nXerej/j0ej1d�Z2ej/j0e,d�Z3ej/j4e2�swej/j0ej1d�Z2ej/j0e,d�Z3qwn\ej/j0ej1d�Z2ej/j0e,d�Z3ejd dkrwej1d dkrwdZ2ne5dde5dd�Z7e5dde5dd�Z8dS(s7Locations where we look for configs, install stuff, etci(tabsolute_importN(t	sysconfig(tSCHEME_KEYS(tinstall(tScheme(tappdirs(tWINDOWS(tMYPY_CHECK_RUNNINGtcast(trunning_under_virtualenv(tDicttListtOptionaltUnion(tCommandtpipcC@sdjtj�S(se
    Return the major-minor version of the current Python as a string, e.g.
    "3.7" or "3.10".
    s{}.{}(tformattsystversion_info(((sH/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pytget_major_minor_version"scC@stt�r$tjjtjd�}n@ytjjtj�d�}Wntk
rctjd�nXtjj	|�S(Ntsrcs=The folder you are executing pip from can no longer be found.(
R	tostpathtjoinRtprefixtgetcwdtOSErrortexittabspath(t
src_prefix((sH/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pytget_src_prefix+s	
tpurelibtpypytScriptstbinitdarwinis/System/Library/s/usr/local/bincC@s�ddlm}i|d6}|r3dg|d<n||�}|j�d}	|jddt�}	tt|	�}
|p|
j|
_|s�|r�d|
_	n|p�|
j	|
_	|p�|
j
|
_
|p�|
j|
_|
j�i}x%t
D]}t|
d	|�||<q�Wd
|jd�krE|jtd|
jd|
j��nt�r�tjj|
j	d
ddjt��|�|d<|dk	r�tjjtjj|d��d}
tjj||
d�|d<q�n|S(s+
    Return a distutils install scheme
    i(tDistributiontnames
--no-user-cfgtscript_argsRtcreatettinstall_tinstall_libRtplatlibtincludetsitespython{}theadersiN(tdistutils.distR$tparse_config_filestNonetget_command_objtTrueRtdistutils_install_commandtuserRthometroottfinalize_optionsRtgetattrtget_option_dicttupdatetdictR*R	RRRRRt
splitdriveR(t	dist_nameR5R6R7tisolatedRR$t	dist_argstdtobjtitschemetkeyt
path_no_drive((sH/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pytdistutils_scheme_sF



%		
		cC@sTt||||||�}td|dd|dd|dd|dd|d�S(s;
    Get the "scheme" corresponding to the input parameters. The distutils
    documentation provides the context for the available schemes:
    https://docs.python.org/3/install/index.html#alternate-installation

    :param dist_name: the name of the package to retrieve the scheme for, used
        in the headers scheme path
    :param user: indicates to use the "user" scheme
    :param home: indicates to use the "home" scheme and provides the base
        directory for the same
    :param root: root under which other directories are re-based
    :param isolated: equivalent to --no-user-cfg, i.e. do not consider
        ~/.pydistutils.cfg (posix) or ~/pydistutils.cfg (non-posix) for
        scheme paths
    :param prefix: indicates to use the "prefix" scheme and provides the
        base directory for the same
    R+RR.tscriptstdata(RGR(R>R5R6R7R?RRD((sH/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pyt
get_scheme�s



(9t__doc__t
__future__RRtos.pathtplatformR-RRt	distutilstdistutils_sysconfigtdistutils.command.installRRR4tpip._internal.models.schemeRtpip._internal.utilsRtpip._internal.utils.compatRtpip._internal.utils.typingRRtpip._internal.utils.virtualenvR	ttypingR
RRR
t
distutils.cmdRtDistutilsCommandtuser_cache_dirtUSER_CACHE_DIRRRtget_patht
site_packagestpython_implementationtlowertget_python_libtgetusersitepackagest	user_sitetAttributeErrort	USER_SITERRRtbin_pytbin_usertexiststFalseR1RGRJ(((sH/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pyt<module>sX"			

&	A

Zerion Mini Shell 1.0