ok

Mini Shell

Direktori : /proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pyc

�
�Rec@@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(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pytget_src_prefix+s	
tpurelibtpypytScriptstbinitdarwinis/System/Library/s/usr/local/bincC@s4ddlm}i|d6}|r3dg|d<n||�}|j�d}	|jddt�}	|	dk	svt�tt|	�}
|o�|s�tdj	||���|o�|s�td	j	||���|p�|
j
|
_
|s�|r�d
|
_n|p|
j|
_|p|
j|
_|p)|
j
|
_
|
j�i}x%tD]}t|
d|�||<qFWd|jd�kr�|jtd
|
jd|
j��nt�r0tjj|
jdddj	t��|�|d<|dk	r0tjjtjj|d��d}
tjj||
d�|d<q0n|S(s+
    Return a distutils install scheme
    i(tDistributiontnames
--no-user-cfgtscript_argsRtcreatesuser={} prefix={}shome={} prefix={}ttinstall_tinstall_libRtplatlibtincludetsitespython{}theadersiN(tdistutils.distR$tparse_config_filestNonetget_command_objtTruetAssertionErrorRtdistutils_install_commandRtuserRthometroottfinalize_optionsRtgetattrtget_option_dicttupdatetdictR*R	RRRRt
splitdriveR(t	dist_nameR6R7R8tisolatedRR$t	dist_argstdtobjtitschemetkeyt
path_no_drive((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pytdistutils_scheme_sL

%%

%		
		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(RHR(R?R6R7R8R@RRE((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/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.installRRR5tpip._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_usertexiststFalseR1RHRK(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/locations.pyt<module>sX"			

&	A

Zerion Mini Shell 1.0