Viewing File: /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/locations.pyc

σ
“tΖ_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/python35/lib/python3.5/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/python35/lib/python3.5/site-packages/pip/_internal/locations.pytget_src_prefix+s	
tpurelibtpypytScriptstbinitdarwinis/System/Library/s/usr/local/binc
C@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((sH/opt/alt/python35/lib/python3.5/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((sH/opt/alt/python35/lib/python3.5/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(((sH/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/locations.pyt<module>sX"			

&	A
Back to Directory File Manager