AlkantarClanX12

Your IP : 3.141.201.95


Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/sysconfig.cpython-37.opt-2.pyc

B

 fu_�
@s�ddlZddlZddlmZmZddddddd	d
ddd
gZddddddddd�ddddddddd�ddddddddd�ddd d d!d"d#d$�d%d%d&d'd(d)d#d$�d*d*d+d+d,d)d#d$�d-�Zd$Zej�	�dZ
d.ejdd/�Zd0ejdd/�Z
ej�ej�Zej�ej�Zej�ej�Zej�ej�ZdadZd1d2�Zej�rLej�eej��Znee���Zejd3k�r�e� ��!d4��r�eej�"eee��Zd5ej#k�r�eej#d5�Zd6d7�Z$e%ed8d�Z&ejd3k�r�d9d:�Z'e'e�Ze'e&�Z&dhd<d=�Z(e(d>�Z)e)�rx&d?D]Z*d@ee*dA<dBee*dC<�q�WdDdE�Z+dFdG�Z,dHdI�Z-dJdK�Z.dLdM�Z/didNdO�Z0dPd�Z1dQdR�Z2dSdT�Z3dUdV�Z4dWdX�Z5djdYd
�Z6dZd�Z7d[d�Z8d\d�Z9e.�dd>fd]d	�Z:e.�dd>fd^d�Z;d_d�Z<d`d�Z=dad
�Z>dbd�Z?dcdd�Z@dedf�ZAeBdgk�r�eA�dS)k�N)�pardir�realpath�get_config_h_filename�get_config_var�get_config_vars�get_makefile_filename�get_path�get_path_names�	get_paths�get_platform�get_python_version�get_scheme_names�parse_config_hz/{installed_base}/lib64/python{py_version_short}z){platbase}/lib64/python{py_version_short}z1{base}/lib/python{py_version_short}/site-packagesz7{platbase}/lib64/python{py_version_short}/site-packagesz;{installed_base}/include/python{py_version_short}{abiflags}z?{installed_platbase}/include/python{py_version_short}{abiflags}z
{base}/binz{base})�stdlib�
platstdlib�purelib�platlib�include�platinclude�scripts�dataz{installed_base}/lib/pythonz{base}/lib/pythonz{installed_base}/include/pythonz{installed_base}/Libz
{base}/Libz{base}/Lib/site-packagesz{installed_base}/Includez{base}/Scriptsz#{userbase}/Python{py_version_nodot}z1{userbase}/Python{py_version_nodot}/site-packagesz+{userbase}/Python{py_version_nodot}/Includez+{userbase}/Python{py_version_nodot}/Scriptsz
{userbase})rrrrrrrz){userbase}/lib64/python{py_version_short}z5{userbase}/lib/python{py_version_short}/site-packagesz7{userbase}/lib64/python{py_version_short}/site-packagesz+{userbase}/include/python{py_version_short}z{userbase}/binz{userbase}/lib/pythonz#{userbase}/lib/python/site-packagesz{userbase}/include)�posix_prefix�
posix_home�ntZnt_userZ
posix_userZosx_framework_userz%d.%d�z%d%dcCs"yt|�Stk
r|SXdS)N)r�OSError)�path�r�./opt/alt/python37/lib64/python3.7/sysconfig.py�_safe_realpathdsrr)z\pcbuild\win32z\pcbuild\amd64Z_PYTHON_PROJECT_BASEcCs.x(dD] }tj�tj�|d|��rdSqWdS)N)z
Setup.distzSetup.localZModulesTF)�osr�isfile�join)�d�fnrrr�_is_python_source_dirys
r%�_homecCs0|r,tj�|��tj�tj�td���r,tS|S)NZPCbuild)r r�normcase�
startswithr"�_PREFIX)r#rrr�_fix_pcbuild�sr*FcCs|rtrtt�Stt�S)N)�	_sys_homer%�
_PROJECT_BASE)Z
check_homerrr�is_python_build�sr-T)rrz{srcdir}/Includerz{projectbase}/.rc
Csfy|jf|�Stk
r`y|jftj�Stk
rZ}ztd|�d�Wdd}~XYnXYnXdS)Nz{%s})�format�KeyErrorr �environ�AttributeError)�sZ
local_vars�varrrr�_subst_vars�sr4cCs4|��}x&|��D]\}}||kr$q|||<qWdS)N)�keys�items)Ztarget_dictZ
other_dictZtarget_keys�key�valuerrr�_extend_dict�s
r9cCsfi}|dkri}t|t��xDt|��D]4\}}tjdkrHtj�|�}tj�t	||��||<q*W|S)N)�posixr)
r9r�_INSTALL_SCHEMESr6r �namer�
expanduser�normpathr4)�scheme�varsZresr7r8rrr�_expand_vars�s
rAcCstjdkrdStjS)Nr:r)r r<rrrr�_get_default_scheme�s
rBcCsztj�dd�}|r|Sdd�}tjdkrBtj�d�p6d}||d�Stjdkrptjrp|dd	tjd
tjdd��S|dd�S)
N�PYTHONUSERBASEcWstj�tjj|��S)N)r rr=r")�argsrrr�joinuser�sz_getuserbase.<locals>.joinuserr�APPDATA�~�Python�darwin�Libraryz%d.%drz.local)r r0�getr<�sys�platform�
_framework�version_info)�env_baserE�baserrr�_getuserbase�s


rRc	Cspddl}|�d�}|�d�}|�d�}|dkr2i}i}i}t|dd��}|��}	WdQRXx�|	D]�}
|
�d�s`|
��dkr|q`|�|
�}|r`|�d	d
�\}}
|
��}
|
�dd�}d|kr�|
||<q`yt	|
�}
Wn$t
k
r�|
�dd�||<Yq`X|
||<q`Wt|���}d
}�x t
|�dk�r0�xt|�D�]�}||}|�|�}|�|�}|�rv|�rv|��|��k�rp|n|}n|�r�|n|}|dk	�r|�d	�}d}||k�r�t||�}n�||k�r�d}nx|tjk�r�tj|}n`||k�r0|�d��r
|dd�|k�r
d}n$d||k�rd}nt|d|�}nd||<}|�r&||��d�}|d|���}|��|k�rx||7}||7}d|k�r�|||<n~yt	|�}Wn"t
k
�r�|��||<Yn
X|||<|�|�|�d��r&|dd�|k�r&|dd�}||k�r&|||<n|||<|�|��q,W�qWx.|��D]"\}}
t|
t��r<|
��||<�q<W|�|�|S)Nrz"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}�surrogateescape)�errors�#��rz$$�$)ZCFLAGSZLDFLAGSZCPPFLAGSTFZPY_�)�re�compile�open�	readlinesr(�strip�match�group�replace�int�
ValueError�listr5�len�tuple�search�start�strr r0�end�remover6�
isinstance�update)�filenamer@rZZ_variable_rxZ_findvar1_rxZ_findvar2_rxZdoneZnotdone�f�lines�line�m�n�vZtmpvZ	variablesZrenamed_variablesr<r8Zm1Zm2�found�itemZafter�krrr�_parse_makefile�s�	


















rxcCsdtrtj�tptd�Sttd�r0dttj	f}nd}ttj
d�rP|dtj
j7}tj�td�|d�S)NZMakefile�abiflagszconfig-%s%sZconfig�
_multiarchz-%sr)
�
_PYTHON_BUILDr rr"r+r,�hasattrrL�_PY_VERSION_SHORTry�implementationrzr)Zconfig_dir_namerrrrPs
c
Cs(tj�ddjtjtjttjdd�d��S)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rzrV)ZabirMZ	multiarch)	r r0rKr.rLryrM�getattrr~rrrr�_get_sysconfigdata_name]s
r�c
Cs�ddl}i}t�}yt||�WnJtk
rj}z,d|}t|d�rR|d|j}t|��Wdd}~XYnXt�}y"t|��}t||�WdQRXWnJtk
r�}z,d|}t|d�r�|d|j}t|��Wdd}~XYnXt	r�|d|d<t
�}dtjk�r$ddl
}|�|�}	||	_|	tj|<dt�tf}
ttd	��rF|
d
7}
tj|
dd�tj�|
|d
�}t|ddd��(}|�d�|�d�|j||d�WdQRXtdddd��}|�|
�WdQRXdS)Nrz.invalid Python installation: unable to open %s�strerrorz (%s)ZLDSHAREDZ	BLDSHAREDrIzbuild/lib.%s-%sZgettotalrefcountz-pydebugT)�exist_okz.py�w�utf8)�encodingzB# system configuration generated and used by the sysconfig module
zbuild_time_vars = )�streamzpybuilddir.txt�ascii)�pprintrrxrr|r�rr\rr{r�rLrM�types�
ModuleType�build_time_vars�modulesrr}r �makedirsrr"�write)r�r@Zmakefile�e�msgZconfig_hror<r��moduleZ
pybuilddirZdestfilerrr�_generate_posix_varsfsL







r�cCs0t�}t|t�t�dgd�}|j}|�|�dS)Nr�r)r��
__import__�globals�localsr�rm)r@r<Z_tempr�rrr�_init_posix�sr�cCsVtd�|d<td�|d<td�|d<d|d<d	|d
<t|d<tj�ttj��|d<dS)
NrZLIBDESTrZ
BINLIBDESTrZ	INCLUDEPYz.pyd�
EXT_SUFFIXz.exeZEXEZVERSIONZBINDIR)r�_PY_VERSION_SHORT_NO_DOTr r�dirnamerrL�
executable)r@rrr�_init_non_posix�sr�c	Cs�|dkri}ddl}|�d�}|�d�}xx|��}|s8P|�|�}|r�|�dd�\}}yt|�}Wntk
rvYnX|||<q*|�|�}|r*d||�d�<q*W|S)Nrz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
rWr)rZr[�readliner_r`rbrc)	�fpr@rZZ	define_rxZundef_rxrqrrrsrtrrrr�s*




cCsBtr,tjdkr"tj�tptd�}q4tp(t}ntd�}tj�|d�S)NrZPCrz
pyconfig.h)r{r r<rr"r+r,r)Zinc_dirrrrr�s

cCsttt��S)N)rf�sortedr;rrrrr
�scCstS)N)�_SCHEME_KEYSrrrrr	�scCs|rt||�St|SdS)N)rAr;)r?r@�expandrrrr
�s
cCst|||�|S)N)r
)r<r?r@r�rrrr�scGs|tdk�rFiattd<ttd<ttd<ttd<ttd<ttd<ttd<ttd<ttd	<ttd
<yt	j
td<Wntk
r�dtd<YnXtj
d
kr�tt�tj
dkr�tt�t�d�}|dk	r�|td<t�td<t�dt�}tj
dk�rt�rtj�t��}tj�||�}ntj�t��}t|�td<t	jdk�rFddl}|�t�|�rtg}x|D]}|�t�|���qVW|StSdS)N�prefix�exec_prefixZ
py_versionZpy_version_shortZpy_version_nodotZinstalled_baserQZinstalled_platbaseZplatbaseZprojectbaseryrVrr:r��SO�userbase�srcdirrIr)�_CONFIG_VARSr)�_EXEC_PREFIX�_PY_VERSIONr}r��_BASE_PREFIX�_BASE_EXEC_PREFIXr,rLryr1r r<r�r�rKrRr{rr�rr"rrM�_osx_supportZcustomize_config_vars�append)rDr�r�rQr�Zvalsr<rrrrsP






cCs*|dkrddl}|�dtd�t��|�S)Nr�rz SO is deprecated, use EXT_SUFFIXr)�warnings�warn�DeprecationWarningrrK)r<r�rrrrTsc
Cs�tjdkr"dtj��krdStjStjdks6ttd�s<tjSdtjkrPtjdSt��\}}}}}|���	dd�}|�	d	d
�}|�	dd�}|dd�d
kr�d||fS|dd�dk�r|ddk�r�d}dt
|d�d|dd�f}ddd�}|d|tj7}n�|dd�dk�r(d|||fS|dd�dk�rjd}ddl}|�
d�}|�|�}|�r�|��}n2|dd�dk�r�ddl}	|	�t�|||�\}}}d |||fS)!NrZamd64z	win-amd64r:�unameZ_PYTHON_HOST_PLATFORM�/rV� �_�-�Zlinuxz%s-%sZsunosr�5Zsolarisz%d.%srYrZ32bitZ64bit)i���l����z.%sZaixz%s-%s.%s��cygwinz[\d.]+rIz%s-%s-%s)r r<rL�version�lowerrMr|r0r�rarb�maxsizerZr[r_r`r�Zget_platform_osxr)
ZosnameZhost�releaser��machineZbitnessrZZrel_rerrr�rrrr`sF


 



cCstS)N)r}rrrrr�scCsJxDtt|����D]0\}\}}|dkr2td|�td||f�qWdS)Nrz%s: z
	%s = "%s")�	enumerater�r6�print)�titler�indexr7r8rrr�_print_dict�sr�cCsfdtjkrt�dStdt��tdt��tdt��t�tdt��t�tdt	��dS)Nz--generate-posix-varszPlatform: "%s"zPython version: "%s"z!Current installation scheme: "%s"ZPathsZ	Variables)
rL�argvr�r�rrrBr�r
rrrrr�_main�s
r��__main__)F)N)N)Cr rLZos.pathrr�__all__r;r�r��splitr�rOr}r�rr>r�r)�base_prefixr�r�r��base_exec_prefixr�r�Z
_USER_BASErr�r�r,�getcwdr<r��endswithr"r0r%rr+r*r-r{r?r4r9rArBrRrxrr�r�r�r�rrr
r	r
rrrrrr�r��__name__rrrr�<module>s�

	
	

	?
 ML