Hacked By AnonymousFox

Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyc

�
�Rec@s`dZddlZddlZddlZddlZddlmZmZyddlZWne	k
r{ddl
ZnXdddddd	d
ddd
dgZd�Zej
r�ejjeej
��Zneej��Zejdkr(dedj�kr(eejjee��Znejdkrndedj�krneejjeee��Znejdkr�dedj�kr�eejjeee��Znd�Ze�Zead�Zej�Zejd�Zd�Zdejd Z dejd Z!dejd Z"ejj#ej$�Z%ejj#ej&�Z'da)dZ*d �Z+d!�Z,d"�Z-d#�Z.d$�Z/d%�Z0dd&�Z1d'�Z2d(�Z3d)�Z4dd*�Z5d+�Z6d,�Z7d-�Z8e/�de9d.�Z:e/�de9d/�Z;d0�Z<d1�Z=d2�Z>d3�Z?d4�Z@d5�ZAeBd6kr\eA�ndS(7s-Access to Python's configuration information.i����N(tpardirtrealpathtget_config_h_filenametget_config_vartget_config_varstget_makefile_filenametget_pathtget_path_namest	get_pathstget_platformtget_python_versiontget_scheme_namestparse_config_hcCs'yt|�SWntk
r"|SXdS(N(RtOSError(tpath((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_safe_realpath"s
tnttpcbuildi����s\pc\vi����s\pcbuild\amd64i�cCs=x6dD].}tjjtjjtd|��rtSqWtS(Ns
Setup.distsSetup.localtModules(s
Setup.distsSetup.local(tosRtisfiletjoint
_PROJECT_BASEtTruetFalse(tfn((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pytis_python_build:s
$cCs�ts�ddlm}tjdd�d}||�}|jd�}|sYtd��|j��}tj	|�WdQXt
r�x7dD],}tj|d
d�tj|dd
�q�WntandS(Ni(tfindert.iis
sysconfig.cfgssysconfig.cfg existstposix_prefixt
posix_hometincludes{srcdir}/Includetplatincludes{projectbase}/.(RR(
t	_cfg_readt	resourcesRt__name__trsplittfindtAssertionErrort	as_streamt_SCHEMEStreadfpt
_PYTHON_BUILDtsetR(Rtbackport_packaget_findert_cfgfiletstscheme((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_ensure_cfg_readDs
s\{([^{]*?)\}cs-t�|jd�r(|jd�}n	t�}|j�}xb|D]Z}|dkr\qDnx?|D]7\}}|j||�r�qcn|j|||�qcWqDW|jd�xw|j�D]i}t|j|����fd�}x<|j|�D]+\}}|j||t	j
||��q�Wq�WdS(Ntglobalscs0|jd�}|�kr#�|S|jd�S(Nii(tgroup(tmatchobjtname(t	variables(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt	_replaceros(R1thas_sectiontitemsttupletsectionst
has_optionR+tremove_sectiontdictt	_VAR_REPLtsub(tconfigR2R;tsectiontoptiontvalueR7((R6s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_expand_globalsYs$	

s%s.%s.%sis%s.%sis%s%scs�fd�}tj||�S(s�In the string `path`, replace tokens like {some.thing} with the
    corresponding value from the map `local_vars`.

    If there is no corresponding value, leave the token unchanged.
    csJ|jd�}|�kr#�|S|tjkr=tj|S|jd�S(Nii(R3Rtenviron(R4R5(t
local_vars(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR7�s(R?R@(RRGR7((RGs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_subst_vars�scCsI|j�}x6|j�D](\}}||kr7qn|||<qWdS(N(tkeysR9(ttarget_dictt
other_dictttarget_keystkeyRD((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_extend_dict�s
cCs�i}|dkri}nt|t��x`tj|�D]O\}}tjdkrktjj|�}ntjj	t
||��||<q;W|S(NtposixR(ROR(tNoneRNRR(R9RR5Rt
expandusertnormpathRH(R0tvarstresRMRD((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_expand_vars�s	#cs�fd�}tj||�S(Ncs0|jd�}|�kr#�|S|jd�S(Nii(R3(R4R5(RS(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR7�s(R?R@(RDRSR7((RSs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pytformat_value�scCstjdkrdStjS(NROR(RR5(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_get_default_scheme�scCs�tjjdd�}d�}tjdkr_tjjd�pBd}|rO|S||d�Sntjdkr�td�}|r�|r�|S|dd	|d
tjd �Sq�n|r�|S|dd�SdS(
NtPYTHONUSERBASEcWstjjtjj|��S(N(RRRQR(targs((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pytjoinuser�sRtAPPDATAt~tPythontdarwintPYTHONFRAMEWORKtLibrarys%d.%dis.local(	RRFtgetRPR5tsystplatformRtversion_info(tenv_baseRZtbaset	framework((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_getuserbase�s"	cCs�tjd�}tjd�}tjd�}|dkrBi}ni}i}tj|dddd��}|j�}WdQXx�|D]�}	|	jd	�s�|	j�d
kr�q�n|j|	�}
|
r�|
j	dd�\}}|j�}|j
d
d
�}
d|
kr|||<q]yt|�}Wn'tk
rO|j
d
d�||<q]X|||<q�q�Wt
|j��}d}x/t|�dkr�xt|�D]}||}|j|�p�|j|�}
|
dk	r�|
j	d�}t}||kr	t||�}n�||krt}n�|tjkr=tj|}nr||kr�|jd�rq|d|krqd
}q�d||kr�t}q�t|d|�}nd
||<}|r�||
j�}||
j� ||}d|kr�|||<q�yt|�}Wn!tk
r)|j�||<nX|||<|j|�|jd�r�|d|kr�|d}||kr�|||<q�q�q�q�|||<|j|�q�Wq|Wx<|j�D].\}}t|t�r�|j�||<q�q�W|j|�|S(s�Parse a Makefile-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    s"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)s\$\(([A-Za-z][A-Za-z0-9_]*)\)s\${([A-Za-z][A-Za-z0-9_]*)}tencodingsutf-8terrorstsurrogateescapeNt#tiis$$t$tCFLAGStLDFLAGStCPPFLAGSitPY_i(RoRpRq(tretcompileRPtcodecstopent	readlinest
startswithtstriptmatchR3treplacetintt
ValueErrortlistRItlenR:tsearchRtstrRRRFtendtstarttremoveR9t
isinstancetupdate(tfilenameRSt_variable_rxt_findvar1_rxt_findvar2_rxtdonetnotdonetftlinestlinetmtntvttmpvR6trenamed_variablesR5RDtfoundtitemtaftertk((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_parse_makefile�s�		
!


			






cCs`trtjjtd�Sttd�r>dttjf}nd}tjjt	d�|d�S(s Return the path of the Makefile.tMakefiletabiflagssconfig-%s%sRAtstdlib(
R*RRRRthasattrRbt_PY_VERSION_SHORTR�R(tconfig_dir_name((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyRKscCst�}yt||�WnLtk
rh}d|}t|d�rY|d|j}nt|��nXt�}y&t|��}t||�WdQXWnLtk
r�}d|}t|d�r�|d|j}nt|��nXtr�|d|d<ndS(s7Initialize the module as appropriate for POSIX systems.s.invalid Python installation: unable to open %ststrerrors (%s)Nt	BLDSHAREDtLDSHARED(	RR�tIOErrorR�R�RRvRR*(RStmakefiletetmsgtconfig_hR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_init_posixVs&	
	
cCsqtd�|d<td�|d<td�|d<d|d<d	|d
<t|d<tjjttj��|d<d
S(s+Initialize the module as appropriate for NTR�tLIBDESTt
platstdlibt
BINLIBDESTRt	INCLUDEPYs.pydtSOs.exetEXEtVERSIONtBINDIRN(Rt_PY_VERSION_SHORT_NO_DOTRRtdirnameRRbt
executable(RS((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_init_non_posixrs


cCs�|dkri}ntjd�}tjd�}x�tr�|j�}|sRPn|j|�}|r�|jdd�\}}yt|�}Wntk
r�nX|||<q6|j|�}|r6d||jd�<q6q6W|S(s�Parse a config.h-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    s"#define ([A-Z][A-Za-z0-9_]+) (.*)
s&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
iiiN(	RPRsRtRtreadlineRzR3R|R}(tfpRSt	define_rxtundef_rxR�R�R�R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�s(		

cCsUtr6tjdkr-tjjtd�}qBt}ntd�}tjj|d�S(sReturn the path of pyconfig.h.RtPCR s
pyconfig.h(R*RR5RRRR(tinc_dir((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�s	cCstttj���S(s,Return a tuple containing the schemes names.(R:tsortedR(R;(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�scCs
tjd�S(s*Return a tuple containing the paths names.R(R(toptions(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�scCs1t�|rt||�Sttj|��SdS(s�Return a mapping containing an install scheme.

    ``scheme`` is the install scheme name. If not provided, it will
    return the default scheme for the current platform.
    N(R1RUR>R(R9(R0RStexpand((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�s
cCst|||�|S(s[Return a path corresponding to the scheme.

    ``scheme`` is the install scheme name.
    (R(R5R0RSR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�scGs�td"krRiattd<ttd<ttd<ttd<tdtdtd<ttd<ttd	<ttd
<ytjtd<Wnt	k
r�dtd<nXt
jd#kr�tt�nt
jdkr�t
t�ntjdkr�t�td<ndtkr
ttd<nttd�td<tr�t
jdkr�t}yt
j�}Wntk
red"}nXt
jjtd�r�||kr�t
jj|td�}t
jj|�td<q�ntjdkrRt
j�d}t|jd�d�}|dkrTxGd$D]D}t|}tjdd|�}tjdd|�}|t|<q	WqOdt
jkr�t
jd}xHd%D]=}t|}tjdd|�}|d|}|t|<qwWntjdd�}	tj d|	�}
|
d"k	rO|
j!d �}t
jj"|�sLx:d&D]/}t|}tjd!d|�}|t|<qWqLqOqRn|r�g}x$|D]}
|j#tj|
��qeW|StSd"S('syWith no arguments, return a dictionary of all configuration
    variables relevant for the current platform.

    On Unix, this means every variable defined in Python's installed Makefile;
    On Windows and Mac OS it's a much smaller set.

    With arguments, return a list of values that result from looking up
    each argument in the configuration variable dictionary.
    tprefixtexec_prefixt
py_versiontpy_version_shortiitpy_version_nodotRftplatbasetprojectbaseR�RmRtos2ROs2.6tuserbasetsrcdirR^RiRpt
BASECFLAGSRot	PY_CFLAGSR�s
-arch\s+\w+\st s-isysroot [^ 	]*t	ARCHFLAGSs-isysroot\s+(\S+)is-isysroot\s+\S+(\s|$)N(RR�(RpR�RoR�R�(RpR�RoR�R�(RpR�RoR�R�($t_CONFIG_VARSRPt_PREFIXt_EXEC_PREFIXt_PY_VERSIONR�RRbR�tAttributeErrorRR5R�R�tversionRhRR*tgetcwdR
RtisabsRRRRctunameR|tsplitRsR@RFRaR�R3texiststappend(RYRftcwdR�tkernel_versiont
major_versionRMtflagstarchRoR�tsdktvalsR5((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR�s�




















cCst�j|�S(s�Return the value of a single variable using the dictionary returned by
    'get_config_vars()'.

    Equivalent to get_config_vars().get(name)
    (RRa(R5((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyRPscCs`tjdkr�d}tjj|�}|dkr:tjStjjd|�}tj|t|�|!j�}|dkrdS|dkr�dStjStjd	ks�ttd
�r�tjStj	�\}}}}}|j�j
dd�}|j
d
d�}|j
dd�}|d dkr1d||fS|d dkr|ddkrOd}dt|d�d|df}qOn�|d dkr�d||fS|d dkr�d|||fS|d dkr
d}tj
d �}	|	j|�}
|
rO|
j�}qOnE|d d!krOt�}|jd"�}tr�|}
ytd#�}Wntk
raq�Xztjd$|j��}
Wd%|j�X|
d%k	r�d&j|
jd'�jd&�d �}
q�n|s�|
}n|rO|}d(}|
d&d)kr�d*t�jd+d�j�kr�d,}t�jd+�}tjd-|�}ttt|���}t|�d'krv|d}qI|d;kr�d,}qI|d<kr�d1}qI|d=kr�d2}qI|d>kr�d4}qI|d?kr�d5}qIt d6|f��qL|d.krtj!d@krId0}qIqL|dAkrLtj!dBkr@d3}qId/}qLqOnd:|||fS(Cs�Return a string that identifies the current platform.

    This is used mainly to distinguish platform-specific build directories and
    platform-specific built distributions.  Typically includes the OS name
    and version and the architecture (as supplied by 'os.uname()'),
    although the exact information included depends on the OS; eg. for IRIX
    the architecture isn't particularly important (IRIX only runs on SGI
    hardware), but for Linux the kernel version isn't particularly
    important.

    Examples of returned values:
       linux-i586
       linux-alpha (?)
       solaris-2.6-sun4u
       irix-5.3
       irix64-6.2

    Windows will return one of:
       win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
       win-ia64 (64bit Windows on Itanium)
       win32 (all others - specifically, sys.platform is returned)

    For other non-POSIX platforms, currently just returns 'sys.platform'.
    Rs bit (i����t)tamd64s	win-amd64titaniumswin-ia64ROR�t/RmR�t_t-itlinuxs%s-%stsunosit5tsolariss%d.%siiitirixtaixs%s-%s.%sitcygwins[\d.]+R^tMACOSX_DEPLOYMENT_TARGETs0/System/Library/CoreServices/SystemVersion.plists=<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>NRitmacosxs10.4.s-archRotfats
-arch\s+(\S+)ti386tppctx86_64tinteltfat3tppc64tfat64t	universals%Don't know machine value for archs=%ri tPowerPCtPower_Macintoshs%s-%s-%s(R�R�(R�R�(R�R�R�(R�R�(R�R�R�R�I(R�R�I("RR5RbR�R%RcRtlowerR�R�R{R|RsRtRzR3RRaRRvR�R�treadtcloseRPRR�RytfindallR:R�R+R}tmaxsize(R�titjtlooktosnamethosttreleaseR�tmachinetrel_reR�tcfgvarstmacvert
macreleaseR�tcflagstarchs((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR	Ys� (	
	+	!
						cCstS(N(R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR
�scCsZxStt|j���D]9\}\}}|dkrCd|GHnd||fGHqWdS(Nis%s: s
	%s = "%s"(t	enumerateR�R9(ttitletdatatindexRMRD((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_print_dict�s+cCsRdt�GHdt�GHdt�GHdGHtdt��dGHtdt��dS(	s*Display all information sysconfig detains.sPlatform: "%s"sPython version: "%s"s!Current installation scheme: "%s"tPathst	VariablesN(((R	R
RWRRR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt_mainst__main__(Ct__doc__RuRRsRbtos.pathRRtconfigparsertImportErrortConfigParsert__all__RR�RR�RR�R5R�RRR*RR!R1tRawConfigParserR(RtR?RERdR�R�R�RRR�R�R�R�RPR�t
_USER_BASERHRNRURVRWRhR�RR�R�RRRRRRRRRR	R
RRR#(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt<module>s�
			%%!%!				!			
				v						
	�			�			

Hacked By AnonymousFox1.0, Coded By AnonymousFox