AlkantarClanX12

Your IP : 3.145.109.144


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/sysconfig.cpython-310.opt-2.pyc

o

6��f�k�@sB	ddlZddlZddlmZmZgd�ZdhZddddd	d
ddd
�ddddddddd
�ddddddddd
�d�Zdd�Ze�duZ	e	rdedddddddd�ddd d d!d"dd�d#d#d$d$d!d"dd�d%�OZdZ
ej��dZ
ejd�d&ejd'��Zejd�ejd'��Zej�ej�Zej�ej�Zej�ej�Zej�ej�ZdadZd(Zd)Zd*Zd+d,�Z ej!r�ej�"e ej!��Z#ne e�$��Z#ej%d-kr�e#�&��'d.�r�e ej�(e#ee��Z#d/ej)vr�e ej)d/�Z#d0d1�Z*e+ed2d�Z,ej%d-k�rd3d4�Z-e-e#�Z#e-e,�Z,drd6d7�Z.e.d8�Z/e/�r%d9D]Z0ee0Z0e0d:e0d;<d<e0d:<d=e0d><�qd?d@�Z1dAdB�Z2dCdD�Z3dEdF�Z4dGdH�Z5dIdJ�Z6dsdKdL�Z7dMdN�Z8dOdP�Z9dQdR�Z:dSdT�Z;dUdV�Z<dtdWdX�Z=dYdZ�Z>d[d\�Z?d]d^�Z@e6�dd8fd_d`�ZAe6�dd8fdadb�ZBdcdd�ZCdedf�ZDdgdh�ZEdidj�ZFdkdl�ZGdmdn�ZHdodp�ZIeJdqk�r�eI�dSdS)u�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_hZMACOSX_DEPLOYMENT_TARGETz6{installed_base}/{platlibdir}/python{py_version_short}z0{platbase}/{platlibdir}/python{py_version_short}z1{base}/lib/python{py_version_short}/site-packagesz>{platbase}/{platlibdir}/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}/Scripts)�posix_prefix�
posix_home�ntcCs�tj�dd�}|r|StjdkrdSdd�}tjdkr(tj�d�p"d}||d�Stjd	krCtjrC|dd
tjtjd�dtjd
���S|dd�S)N�PYTHONUSERBASE�vxworkscWstj�tjj|��S�N)�os�path�
expanduser�join)�args�r"�0/opt/alt/python310/lib64/python3.10/sysconfig.py�joinuserIsz_getuserbase.<locals>.joinuserr�APPDATA�~�Python�darwin�Libraryr�.�z.local)r�environ�get�sys�platform�name�
_framework�version_info)�env_baser$�baser"r"r#�_getuserbase@s



�
r5z({userbase}/Python{py_version_nodot_plat}z6{userbase}/Python{py_version_nodot_plat}/site-packagesz0{userbase}/Python{py_version_nodot_plat}/Includez0{userbase}/Python{py_version_nodot_plat}/Scriptsz
{userbase})rrrrrrrz0{userbase}/{platlibdir}/python{py_version_short}z5{userbase}/lib/python{py_version_short}/site-packagesz+{userbase}/include/python{py_version_short}z{userbase}/binz{userbase}/lib/pythonz#{userbase}/lib/python/site-packages)�nt_user�
posix_user�osx_framework_userr*r+z"([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_]*)}cCs"zt|�WSty|YSwr)r�OSError)rr"r"r#�_safe_realpath�s

�r:r)z\pcbuild\win32z\pcbuild\amd64Z_PYTHON_PROJECT_BASEcCs,dD]}tj�tj�|d|��rdSqdS)N)ZSetupzSetup.localZModulesTF)rr�isfiler )�d�fnr"r"r#�_is_python_source_dir�s
�r>�_homecCs0|rtj�|��tj�tj�td���rtS|S)NZPCbuild)rr�normcase�
startswithr �_PREFIX)r<r"r"r#�_fix_pcbuild�s
�rCFcCs|rtrtt�Stt�Sr)�	_sys_homer>�
_PROJECT_BASE)Z
check_homer"r"r#�is_python_build�srFT)rrrZheadersz{srcdir}/Includez{projectbase}/.rcCshz	|jdi|��WSty3}zz|jditj��WWYd}~Sty.t|��d�wd}~ww)Nr")�format�KeyErrorrr,�AttributeError)�sZ
local_vars�varr"r"r#�_subst_vars�s ���rLcCs0|��}|��D]
\}}||vrq|||<qdSr)�keys�items)Ztarget_dictZ
other_dictZtarget_keys�key�valuer"r"r#�_extend_dict�s
�rQcCsbi}|duri}t|t��t|��D]\}}tjdvr#tj�|�}tj�t	||��||<q|S)N)�posixr)
rQr�_INSTALL_SCHEMESrNrr0rr�normpathrL)�scheme�vars�resrOrPr"r"r#�_expand_vars�s
rXcCs>tjdkrdddd�Stjdkrtjrdddd�Sdddd�S)	Nrrr6)�prefix�home�userr(rr8r7)rr0r.r/r1r"r"r"r#�_get_preferred_schemes�s
���r\cCs*t�|}|tvrt|�d|�d���|S)Nz
 returned z., which is not a valid scheme on this platform)r\rS�
ValueError)rOrUr"r"r#�get_preferred_scheme�s
�r^cCstd�S)NrY)r^r"r"r"r#�get_default_schemesr_c	CsX	ddl}|duri}i}i}t|t��dd��}|��}Wd�n1s'wY|D]S}|�d�s;|��dkr<q.|�t|�}	|	r�|	�	dd�\}
}|��}|�
dd�}d	|vr_|||
<q.z|
tvrft�t
|�}Wnty||�
dd	�||
<Yq.w|||
<q.t|���}
d
}t|
�dk�r�t|
�D]�}||}|�t|�}|�t|�}|r�|r�|��|��kr�|n|}	n|r�|n|}	|	du�r||	�	d�}
d}|
|vr�t||
�}n@|
|vr�d}n9|
tjvr�tj|
}n.|
|v�r|�d
�r�|dd�|vr�d}nd
|
|v�rd}nt|d
|
�}nd||
<}|�r{||	��d�}|d|	���||}d	|v�r6|||<q�z
|tv�r>t�t
|�}Wnt�yS|��||<Ynw|||<|
�|�|�d
��r{|dd�|v�r{|dd�}||v�r{|||<q�|�r�|||<|
�|�q�t|
�dks�|��D]\}}t|t��r�|��||<�q�|�|�|S)Nr�surrogateescape)�encoding�errors�#�r+�z$$�$)ZCFLAGSZLDFLAGSZCPPFLAGSTFZPY_�)�re�openr.�getfilesystemencoding�	readlinesrA�strip�match�_variable_rx�group�replace�_ALWAYS_STRr]�int�listrM�len�tuple�search�_findvar1_rx�_findvar2_rx�start�strrr,�end�removerN�
isinstance�update)�filenamerVZkeep_unresolvedrhZdoneZnotdone�f�lines�line�m�n�vZtmpvZ	variablesZrenamed_variablesr0rPZm1Zm2�found�itemZafter�kr"r"r#�_parse_makefiles�
�
�
��







�

��D�
r�cCsj	trtj�tp	td�Sttd�rdt�tj	��}nd}ttj
d�r+|dtj
j��7}tj�td�|d�S)NZMakefile�abiflagszconfig-Zconfig�
_multiarch�-r)
�
_PYTHON_BUILDrrr rDrE�hasattrr.�_PY_VERSION_SHORTr��implementationr�r)Zconfig_dir_namer"r"r#r�s
rc	Cs2ttjdd�}tj�ddtj�dtj�d|���S)Nr�rdZ_PYTHON_SYSCONFIGDATA_NAMEZ_sysconfigdata_�_)�getattrr.r�rr,r-r�r/)Z	multiarchr"r"r#�_get_sysconfigdata_name�s
�r�c
Cs	ddl}i}t�}zt||�Wn#ty4}zd|��}t|d�r,|�d|j�d�}t|��d}~wwt�}zt|dd��
}t||�Wd�n1sOwYWn#tyx}zd|��}t|d�rp|�d|j�d�}t|��d}~wwt	r�|d|d	<t
�}d
tjvr�ddl
}|�|�}	||	_|	tj|<dt��dt��}
ttd
�r�|
d7}
tj|
dd�tj�|
|d�}t|ddd��}|�d�|�d�|j||d�Wd�n1s�wYtdddd��}|�|
�Wd�dS1s�wYdS)Nrz,invalid Python installation: unable to open �strerrorz (�)zutf-8)raZLDSHAREDZ	BLDSHAREDr(z
build/lib.r�Zgettotalrefcountz-pydebugT)�exist_okz.py�w�utf8zB# system configuration generated and used by the sysconfig module
zbuild_time_vars = )�streamzpybuilddir.txt)�pprintrr�r9r�r�rrirr�r�r.r/�types�
ModuleType�build_time_vars�modulesrr�r�makedirsrr �write)r�rVZmakefile�e�msgZconfig_hr�r0r��moduleZ
pybuilddirZdestfiler"r"r#�_generate_posix_vars�s^

����

��





�"�r�cCs2	t�}t|t�t�dgd�}|j}|�|�dS)Nr�r)r��
__import__�globals�localsr�r~)rVr0Z_tempr�r"r"r#�_init_posix�s
r�cCsp	ddl}td�|d<td�|d<td�|d<|��d|d<d	|d
<t|d<tj�ttj	��|d<d
|d<dS)NrrZLIBDESTrZ
BINLIBDESTrZ	INCLUDEPY�
EXT_SUFFIXz.exeZEXEZVERSIONZBINDIRrdZTZPATH)
�_impr�extension_suffixes�_PY_VERSION_SHORT_NO_DOTrr�dirnamer:r.�
executable)rVr�r"r"r#�_init_non_posix�sr�c	Cs�	|duri}ddl}|�d�}|�d�}	|��}|s	|S|�|�}|rI|�dd�\}}z|tvr5t�t|�}Wn	tyCYnw|||<n|�|�}|rWd||�d�<q)Nrz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
Tr+re)rh�compile�readlinermrorqr]rr)	�fprVrhZ	define_rxZundef_rxr�r�r�r�r"r"r#r�s4


��

�rcCsD	trtjdkrtj�tptd�}n	tpt}ntd�}tj�|d�S)NrZPCrz
pyconfig.h)r�rr0rr rDrEr)Zinc_dirr"r"r#rs

rcCs	ttt��Sr)ru�sortedrSr"r"r"r#r
!sr
cCs	tSr)�_SCHEME_KEYSr"r"r"r#r	&sr	cCs	|rt||�St|Sr)rXrS)rUrV�expandr"r"r#r
+s
r
cCs	t|||�|Sr)r
)r0rUrVr�r"r"r#r7srcGs�	tdur�iattd<ttd<ttd<ttd<ttd<ttd<ttd<ttd<ttd	<ttd
<t	j
td<zt	jtd<Wn
tyHd
td<Ynwzt	j
�dd
�td<Wn
tyad
td<Ynwtjdkrktt�tjdkrttt�t�d�}|dur�|td<tr�t�td<t�dt�}tjdkr�tr�tj�t��}tj�||�}ntj�t��}t|�td<t	jdkr�ddl}|�t�|r�g}|D]
}|�t�|��q�|StS)NrY�exec_prefixZ
py_versionZpy_version_shortZpy_version_nodotZinstalled_baser4Zinstalled_platbaseZplatbaseZprojectbase�
platlibdirr�rdr*Zpy_version_nodot_platrrRr��SO�userbase�srcdirr(r) �_CONFIG_VARSrB�_EXEC_PREFIX�_PY_VERSIONr�r��_BASE_PREFIX�_BASE_EXEC_PREFIXrEr.r�r�rI�winverrprr0r�r�r-�_HAS_USER_BASEr5r�rr�rr r:r/�_osx_supportZcustomize_config_vars�append)r!r�r�r4r�Zvalsr0r"r"r#r?sb

��






rcCs,	|dkrddl}|�dtd�t��|�S)Nr�rz SO is deprecated, use EXT_SUFFIXre)�warnings�warn�DeprecationWarningrr-)r0r�r"r"r#r�s
rcCs�	tjdkr$dtj��vrdSdtj��vrdSdtj��vr!dStjStjdks.ttd	�s1tjSd
tjvr;tjd
St��\}}}}}|���	dd�}|�	d
d�}|�	dd�}|dd�dkrg|�d|��S|dd�dkr�|ddkr�d}t
|d�d�d|dd���}ddd�}|d|tj��7}nH|dd�dkr�ddlm
}|�S|dd�dkr�d}ddl}|�d �}|�|�}	|	r�|	��}n|dd�d!kr�ddl}
|
�t�|||�\}}}|�d|�d|��S)"NrZamd64z	win-amd64z(arm)z	win-arm32z(arm64)z	win-arm64rR�unameZ_PYTHON_HOST_PLATFORM�/rd� r�r��ZlinuxZsunosr�5Zsolarisrgr*reZ32bitZ64bit)i���l����Zaix)�aix_platform��cygwinz[\d.]+r()rr0r.�version�lowerr/r�r,r�rprr�maxsizeZ_aix_supportr�rhr�rmror�Zget_platform_osxr)ZosnameZhost�releaser��machineZbitnessr�rhZrel_rer�r�r"r"r#r�sX


"
�

�
�rcCstSr)r�r"r"r"r#r�srcCsf	ddl}	|�t|�p|�t|�}|r/|��\}}|d|�|�|�d��||d�}n	|Sq)NrTr+)rhrvrwrx�spanr-ro)rJrVrhr�Zbegr{r"r"r#�expand_makefile_vars�s*�r�cCsNtt|����D]\}\}}|dkrt|�d��td|�d|�d��qdS)Nrz: �	z = "�")�	enumerater�rN�print)�titler�indexrOrPr"r"r#�_print_dict
s
�r�cCst	dtjvrt�dStdt��d��tdt��d��tdt��d��t�tdt��t�tdt	��dS)Nz--generate-posix-varszPlatform: "r�zPython version: "zCurrent installation scheme: "ZPathsZ	Variables)
r.�argvr�r�rrr_r�r
rr"r"r"r#�_mains
r��__main__)F)NTr)Krr.Zos.pathrr�__all__rqrSr5r�r�r��splitr�r2r�r�rrTrYrB�base_prefixr�r�r��base_exec_prefixr�r�Z
_USER_BASErnrwrxr:r�r�rE�getcwdr0r��endswithr r,r>r�rDrCrFr�rUrLrQrXr\r^r_r�rr�r�r�r�rrr
r	r
rrrrrr�r�r��__name__r"r"r"r#�<module>s��
���&
�
�
��
�

	



?
"SQ

�