Your IP : 18.224.73.107


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/sysconfig.cpython-312.opt-2.pyc

�

�Q�fy�
��	ddlZddlZddlZddlmZgd�ZdhZddddd	d
ddd
�ddddddddd
�ddddddddd
�ddddd	d
ddd
�ddddddddd
�d�Zejdk(r	eded<neded<d�Z	e	�duZ
e
r!eddddddd d!�d"d"d#d#d$d%d d!�d&d&d'd'd$d%d d!�d(�zZd!Zejj�dZejd�d)ejd*��Zejd�ejd*��Zej$j'ej(�Zej$j'ej,�Zej$j'ej0�Zej$j'ej4�Zej8�Zdad+adZ d,Z!d-Z"d.Z#d/�Z$ejJr,ej$jMe$ejJ��Z'ne$ejP��Z'e)ed0d�Z*e*re*Z'ejdk(r"e$e'�jWe$e�d1���reZ'd2ejXvre$ejXd2�Z'dVd3�Z-e-�Z.e.rd4D]Z/ee/Z/e/d5e/d6<d7e/d5<d8e/d9<�[/d:�Z0d;�Z1d<�Z2d=�Z3d>�Z4d?�Z5dWdA�Z6dB�Z7dC�Z8dD�Z9dE�Z:dF�Z;dVdG�Z<dH�Z=dI�Z>dJ�Z?e5�dd@fdK�Z@e5�dd@fdL�ZAdM�ZBdN�ZCdO�ZDdP�ZEdQ�ZFdR�ZGdS�ZHdT�ZIeJdUk(reI�yy)X�N)�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_h�MACOSX_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�nt�
posix_venv�nt_venvrr�venvrc	���tjjdd�}|r|Stjdvryd�}tj
dk(r,tjjd�xsd}||d�Stjdk(rPtjr@|dd	tjtjd
�dtjd���S|dd
�S)N�PYTHONUSERBASE>�wasi�vxworks�
emscriptenc�t�tjjtjj|��S�N)�os�path�
expanduser�join)�argss �0/opt/alt/python312/lib64/python3.12/sysconfig.py�joinuserz_getuserbase.<locals>.joinuserws$���w�w�!�!�"�'�'�,�,��"5�6�6�r�APPDATA�~�Python�darwin�Libraryr�.�z.local)r%�environ�get�sys�platform�name�
_framework�version_info)�env_baser+�bases   r*�_getuserbaser=ns����z�z�~�~�.��5�H�����|�|�8�8��7�
�w�w�$���z�z�~�~�i�(�/�C����h�'�'�
�|�|�x��C�N�N���Y�����+�+�A�.�/�q��1A�1A�!�1D�0E�F�H�	H��C��"�"r,z({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_userr2r3Fz"([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_]*)}c�<�	t|�S#t$r|cYSwxYwr$)r�OSError)r&s r*�_safe_realpathrC�s%�����~��������s�

���_homez\PCbuild�_PYTHON_PROJECT_BASEc���|�ddl}|jdtd��dD]F}tjjtjj
td|��s�Fyy)	Nrz.check_home argument is deprecated and ignored.�)�
stacklevel)�SetupzSetup.local�ModulesTF)�warnings�warn�DeprecationWarningr%r&�isfiler(�
_PROJECT_BASE)�
check_homerK�fns   r*�is_python_buildrR�sW������
�
�F�(�Q�	�	8�&��
�7�7�>�>�"�'�'�,�,�}�i��D�E��'�r,)rrr�headersz{srcdir}/Includez{projectbase}/.rc���	|jdi|��S#t$rE}	|jditj��cYd}~S#t$rt	|��d�wxYwd}~wwxYw)N�)�format�KeyErrorr%r4�AttributeError)�s�
local_vars�vars   r*�_subst_varsr\�se��5��q�x�x�%�*�%�%���5�	5��1�8�8�)�b�j�j�)�)���	5� �C�5�*��4�	5��5�s%��	A"�A�A"�A�A�A"c�h�|j�}|j�D]\}}||vr�|||<�yr$)�keys�items)�target_dict�
other_dict�target_keys�key�values     r*�_extend_dictres<���"�"�$�K� �&�&�(�
��U��+��� ��C��)r,c�f�i}|�i}t|t��tjdk(r|ddiz}t|j�D]b\}}tjdvrtjj|�}tjjt||��||<�d|S)Nr�
platlibdir�lib)�posixr)
rerr%r8�_INSTALL_SCHEMESr_r&r'�normpathr\)�scheme�vars�resrcrds     r*�_expand_varsro
s���
�C��|������(�)�	�w�w�$���|�U�+�+��&�v�.�4�4�6�
��U�
�7�7�o�%��G�G�&�&�u�-�E��7�7�#�#�K��t�$<�=��C��7��Jr,c��tjdk(rdddd�Stjdk(rtjrdddd�Sdddd�S)	Nrrr>)�prefix�home�userr0rr@r?)r%r8r6r7r9rUr,r*�_get_preferred_schemesrts\��	�w�w�$��� ��
�	
�
�|�|�x��C�N�N�$� �(�
�	
�!����r,c��|dk(r"tjtjk7ryt�|}|tvrt|�d|�d���|S)Nrqrz
 returned z., which is not a valid scheme on this platform)r6rq�base_prefixrtrj�
ValueError)rcrls  r*�get_preferred_schemerx0sZ��
�h��3�:�:����8��
#�
%�c�
*�F�
�%�%���g�Z��z�*�
 �
�	
��Mr,c��td�S)Nrq)rxrUr,r*�get_default_schemerz<s
����)�)r,Tc��	ddl}|�i}i}i}t|tj�d��5}|j	�}ddd�D]�}|jd�s|j
�dk(r�(|jt|�}	|	s�A|	jdd�\}
}|j
�}|jdd�}d	|vr|||
<��	|
tvrt�t|�}|||
<��t|j��}
d
}t!|
�dkD�r�t#|
�D�]�}||}|j%t&|�}|j%t(|�}|r(|r&|j+�|j+�kr|n|}	n|r|n|}	|	��.|	jd�}
d}|
|vrt-||
�}no|
|vrd}nh|
t.j0vrt.j0|
}nB|
|vr7|jd
�r
|dd|vrd}n#d
|
z|vrd}nt-|d
|
z�}ndx||
<}|s��||	j3�d}|d|	j+�z|z}d	|vr|||<��8	|tvrt�t|�}|||<|
j5|�|jd
�s��{|dd|vs���|dd}||vs���|||<���|r|||<|
j5|����t!|
�dkDr���|j7�D])\}}t9|t,�s�|j
�||<�+|j;|�|S#1swY���xYw#t$r|jdd	�||
<Y��wxYw#t$r|j
�||<Y��
wxYw)Nr�surrogateescape)�encoding�errors�#�r3rGz$$�$)�CFLAGS�LDFLAGS�CPPFLAGSTF�PY_�)�re�openr6�getfilesystemencoding�	readlines�
startswith�strip�match�_variable_rx�group�replace�_ALWAYS_STRrw�int�listr^�len�tuple�search�_findvar1_rx�_findvar2_rx�start�strr%r4�end�remover_�
isinstance�update)�filenamerm�keep_unresolvedr��done�notdone�f�lines�line�m�n�v�tmpv�	variables�renamed_variablesr8rd�m1�m2�found�item�after�ks                       r*�_parse_makefiler�@s������|���
�D��G�	
�h��!:�!:�!<�&�
(�+,����
��
(����?�?�3��4�:�:�<�2�#5���H�H�\�4�(����7�7�1�a�=�D�A�q����	�A��9�9�T�2�&�D��d�{����
�	 ��K�'�(�(��A��A�
 �D��G�-�2�W�\�\�^�$�I�:��

�i�.�1�
��)�$�D��D�M�E����<��/�B����<��/�B��b��(�(�*�r�x�x�z�1�B�r���B�"���}��G�G�A�J������9��t�A�w�<�D��'�\�!�E��"�*�*�_��:�:�a�=�D��+�+�����.��Q�R��$5�5�!�����g�-� %�� #�4���	�?�3��&(�'�D��G�d��!�!�%�%�'�(�O�E�!�*�1�7�7�9�-��4�u�<�E��e�|�(-���
�/�#�{�2�&0� 0�$'��J�E�*/�D��J�!�(�(��.��?�?�5�1� ���H�(9�9�#'���8�D�#�4�/�-2��T�
�
#�!&�D��J�� � ��&�A%��i�.�1�
�H�
�
����1��a����g�g�i�D��G��
	�K�K����K�_
(�
(��,"�3��i�i��c�2�D��G�3��x *�7�).����D��J�7�s/�L1�L>�M#�1L;�>M �M �#N�Nc�x�	tr$tjjtd�Sttd�rdt�tj��}nd}ttjd�r |dtjj��z
}tjjtd�|d�S)N�Makefile�abiflagszconfig-�config�
_multiarch�-r)�
_PYTHON_BUILDr%r&r(rO�hasattrr6�_PY_VERSION_SHORTr��implementationr�r)�config_dir_names r*rr�s���*���w�w�|�|�M�:�6�6��s�J��#�$5�#6�s�|�|�n�E��"���s�!�!�<�0��Q�s�1�1�<�<�=�>�>��
�7�7�<�<���*�O�Z�H�Hr,c	���ttjdd�}tjjddtj�dtj�d|���S)Nr�r��_PYTHON_SYSCONFIGDATA_NAME�_sysconfigdata_�_)�getattrr6r�r%r4r5r�r7)�	multiarchs r*�_get_sysconfigdata_namer��sL����*�*�L�"�=�I�
�:�:�>�>�$�
�#�,�,��q�����a�	�{�C��r,c�@�	ddl}i}t�}	t||�t
�}	t|d��5}t||�ddd�tr|d|d	<t�}d
tjvr/ddl
}|j|�}	||	_|	tj |<dt#��dt$��}
t	td
�r|
dz
}
t'j(|
d��t&j*j-|
|dz�}t|dd��5}|j/d�|j/d�|j||��ddd�tddd��5}|j/|
�ddd�y#t$r3}d|��}t	|d�r|�d|j
�d�}t|��d}~wwxYw#1swY��zxYw#t$r3}d|��}t	|d�r|�d|j
�d�}t|��d}~wwxYw#1swY��xYw#1swYyxYw)Nrz,invalid Python installation: unable to open �strerrorz (�)zutf-8)r}�LDSHARED�	BLDSHAREDr0z
build/lib.r��gettotalrefcountz-pydebugT)�exist_okz.py�w�utf8zB# system configuration generated and used by the sysconfig module
zbuild_time_vars = )�streamzpybuilddir.txt)�pprintrr�rBr�r�rr�rr�r�r6r7�types�
ModuleType�build_time_vars�modulesrr�r%�makedirsr&r(�write)r�rm�makefile�e�msg�config_hr�r8r��module�
pybuilddir�destfiles            r*�_generate_posix_varsr��s��E��
�D�$�&�H����$�'�%�&�H��
�(�W�
-���1�d�#�.�� ��,��[��#�$�D��3�<�<����!�!�$�'��!%���"����D���l�n�-�Q�/@�.A�B�J��s�&�'��j� �
��K�K�
�T�*��w�w�|�|�J��u��5�H�	
�h��f�	-��	���*�	+�	���$�%��
�
�d�1�
�%�	
.�
���f�	5��	���
��
6�	5��i��<�X�J�G���1�j�!��E��A�J�J�<�q�)�C��c�l���	��.�
-����<�X�J�G���1�j�!��E��A�J�J�<�q�)�C��c�l���	��F
.�	-��
6�	5�s]�E=�
G	�
F<�G	�6H�"H�=	F9�.F4�4F9�<G�G	�		H�.H�H�H�Hc��	t�}t|t�t�dgd�}|j}|j|�y)Nr�r)r��
__import__�globals�localsr�r�)rmr8�_tempr�s    r*�_init_posixr�s>��A�"�$�D��t�W�Y���3D�2E�q�I�E��+�+�O��K�K�� r,c�F�	ddl}td�|d<td�|d<td�|d<	|j�d|d<d	|d
<t|d<t
jjttj��|d<d
|d<y#t$rY�XwxYw)Nrr�LIBDESTr�
BINLIBDESTr�	INCLUDEPY�
EXT_SUFFIXz.exe�EXE�VERSION�BINDIRr��TZPATH)�_impr�extension_suffixes�
IndexError�_PY_VERSION_SHORT_NO_DOTr%r&�dirnamerCr6�
executable)rmr�s  r*�_init_non_posixr�s���5���x�(�D��O�!�,�/�D��� ��+�D���
�"�4�4�6�q�9��\���D��K�.�D��O��W�W�_�_�^�C�N�N�%C�D�D��N��D��N���
��
�s�B�	B �B c��	|�i}ddl}|jd�}|jd�}	|j�}|s	|S|j|�}|r5|j	dd�\}}	|t
vrt�t|�}|||<n'|j|�}|rd||j	d�<��#t$rY�9wxYw)Nrz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
r3rG)r��compile�readliner�r�r�rwr�)	�fprmr��	define_rx�undef_rxr�r�r�r�s	         r*rr3s�����|���
��
�
�@�A�I��z�z�C�D�H�
��{�{�}�����K�
�O�O�D�!����7�7�1�a�=�D�A�q�
���#�$�$���F���D��G����t�$�A��#$��Q�W�W�Q�Z� �#���
��
�s�+B2�2	B>�=B>c���	tr?tjdk(r%tjj	t
d�}nt
}nt
d�}tjj	|d�S)Nr�PCrz
pyconfig.h)r�r%r8r&r(rOr)�inc_dirs r*rrUsK��(��
�7�7�d�?��g�g�l�l�=�$�7�G�#�G��=�)��
�7�7�<�<���.�.r,c�4�	ttt��Sr$)r��sortedrjrUr,r*r
r
as��6���(�)�*�*r,c��	tSr$)�_SCHEME_KEYSrUr,r*r	r	fs��4��r,c�2�	|rt||�St|Sr$)rorj)rlrm�expands   r*r
r
ks$���
��F�D�)�)���'�'r,c�$�	t|||�|Sr$)r
)r8rlrmrs    r*rrws����V�T�6�*�4�0�0r,c���iattd<ttd<ttd<ttd<t
td<ttd<ttd<ttd<ttd	<ttd
<tjtd<	tjtd<	tjjdd
�td<tj dk(r&t#t�tj$td<tj dk(rt't�t(rt+�td<tj-dt�}tj dk(rut.rHtj0j3t5��}tj0j7||�}n'tj0j3t5��}t9|�td<tj:dk(rddl}|j?t�da y#t$r
d
td<Y���wxYw#t$r
d
td<Y���wxYw)Nrq�exec_prefix�
py_version�py_version_short�py_version_nodot�installed_baser<�installed_platbase�platbase�projectbasergr�r�r2�py_version_nodot_platr�VPATHri�userbase�srcdirr0rT)!�_CONFIG_VARS�_PREFIX�_EXEC_PREFIX�_PY_VERSIONr�r��_BASE_PREFIX�_BASE_EXEC_PREFIXrOr6rgr�rX�winverr�r%r8r��_vpathr��_HAS_USER_BASEr=r5r�r&r�rr(rCr7�_osx_support�customize_config_vars�_CONFIG_VARS_INITIALIZED)rr<rs   r*�_init_config_varsrs����L�%�L���".�L���!,�L���'8�L�#�$�'?�L�#�$�%1�L�!�"�"�L���):�L�%�&�+�L���"/�L���!$���L���&�#&�<�<��Z� �3�03�
�
�0B�0B�3��0K��,�-�
�w�w�$����%� #�
�
��W��	�w�w�'���L�!��$0�>��Z� ��
�
�h�
�
6�F�	�w�w�'����7�7�?�?�#8�#:�;�D��W�W�\�\�$��/�F��W�W�_�_�%:�%<�=�F�+�F�3�L����|�|�x����*�*�<�8� $���W�&�#%��Z� �&��
�3�02��,�-�3�s$�H1�5'I
�1I�I�
I �I c���	tst5t�
t�ddd�|r/g}|D]&}|j	tj|���(|StS#1swY�@xYwr$)r�_CONFIG_VARS_LOCKrr�appendr5)r)�valsr8s   r*rr�sa���$�
�
�#�!�#�
�����D��K�K��(�(��.�/�������
�s�A�A'c�6�	t�j|�Sr$)rr5)r8s r*rr�s���
�� � ��&�&r,c�J�	tjdk(rsdtjj	�vrydtjj	�vrydtjj	�vrytj
Stjdk7st
td	�stj
Sd
tjvrtjd
Stj�\}}}}}|j	�jdd�}|jd
d�}|jdd�}|dddk(r|�d|��S|dddk(rB|ddk\r�d}t|d�dz
�d|dd��}ddd�}|d|tj��z
}n�|dddk(r
ddlm
}|�S|dddk(r;d}ddl}|jd �}|j!|�}	|	r=|	j#�}n,|ddd!k(r$ddl}
|
j't)�|||�\}}}|�d|�d|��S)"Nr�amd64z	win-amd64z(arm)z	win-arm32z(arm64)z	win-arm64ri�uname�_PYTHON_HOST_PLATFORM�/r�� r�r���linux�sunosr�5�solarisr�r2rG�32bit�64bit)i���l�����aix)�aix_platform��cygwinz[\d.]+r0)r%r8r6�version�lowerr7r�r4r%r�r��maxsize�_aix_supportr1r�r�r�r�r�get_platform_osxr)�osname�host�releaser4�machine�bitnessr1r��rel_rer�rs           r*rr�s(���(
�w�w�$���c�k�k�'�'�)�)���c�k�k�'�'�)�)������)�)�+�+���|�|��	�w�w�'����W�!5��|�|���"�*�*�,��z�z�1�2�2�/1�h�h�j�+�F�D�'�7�G��\�\�^�
#�
#�C��
,�F��o�o�c�3�'�G��o�o�c�3�'�G�
�b�q�z�W���(�!�G�9�%�%�	����w�	��1�:����F��W�Q�Z��1�,�-�Q�w�q�r�{�m�<�G�#*�w�G�G���7�3�;�;�/�0�1�1�G�	����u�	�-��~��	����x�	�������I�&���L�L��!����g�g�i�G�	����x�	��#/�#@�#@�,;�,=�,2�G�W�$F� �����X�Q�w�i�q��	�*�*r,c��tSr$)r�rUr,r*rr8s���r,c��	ddl}	|jt|�xs|jt|�}|r@|j	�\}}|d||j|j
d��z||dz}n	|S�t)Nrr3)r�r�r�r��spanr5r�)rYrmr�r��begr�s      r*�expand_makefile_varsrC<s|������I�I�l�A�&�D�"�)�)�L�!�*D�������J�S�#��!�C��4�8�8�A�G�G�A�J�/�/�!�C�D�'�9�A���H�r,c��tt|j���D]-\}\}}|dk(rt|�d��td|�d|�d���/y)Nrz: �	z = "�")�	enumerater�r_�print)�titler�indexrcrds     r*�_print_dictrKVsQ��(���
�
��)=�>���|��U��A�:��U�G�2�,��
��3�%�t�E�7�!�$�%� ?r,c�B�	dtjvrt�ytdt	��d��tdt��d��tdt
��d��t�tdt��t�tdt��y)Nz--generate-posix-varszPlatform: "rFzPython version: "zCurrent installation scheme: "�Paths�	Variables)
r6�argvr�rHrrrzrKr
rrUr,r*�_mainrP]s��4��#�(�(�*����	�K���'�q�
)�*�	��0�2�3�1�
5�6�	�*�+=�+?�*@��
B�C�	�G�����%�	�G���_�.�/r,�__main__r$)NT)Kr%r6�	threading�os.pathr�__all__r�rjr8r=rrr4�splitrr:r�r�r&rkrqrrvrrr�base_exec_prefixr�RLockrrr�
_USER_BASEr�r�r�rCr�r�rO�getcwdr��	_sys_homer�r4rRr�rlr\rerortrxrzr�rr�r�r�r�rrr
r	r
rrrrrrrCrKrP�__name__rUr,r*�<module>r\s,��3�	�
����� ���K�H�F�S�I�M���
�0�)�&�&�4�8���	
�)�"�-�-�-�1�#��	
�8K�H�F�S�I�M���
�)�"�-�-�-�1�#��	
�}H��V�7�7�d�?�/�	�:��V��/��=��V��
#�,�.��,����A�D�O�O�I�I� ��I�L�N�N�D�'� ��.�1�<�<�D�'� ��)���>#���k�k���!�!�$���'�'��*�+�1�S�-=�-=�a�-@�,A�B��!�.�.�q�1�2�3�3C�3C�A�3F�2G�H��
�'�'�
�
�3�:�:�
&���w�w������0���w�w������0���G�G�$�$�S�%9�%9�:��#�I�O�O�%���� ��
�
�5��/��-����>�>��G�G�O�O�N�3�>�>�$B�C�M�#�9�2�9�9�;�/�M�

�C��$�'�	���M��7�7�d�?��m�$�/�/��l�^�9�5�6�8�$�
��R�Z�Z�'�"�2�:�:�.D�#E�F�M�� �!�
��0��
"�&�)��"�9�-��y��.��y�� 1��}��1�	�5�!��$�(	�*�}�@
I��=�~!��.�D	/�+�
�
(�)��T�	(�-�.�T�$�1�>$�B�<'�N+�b�
�4&�0��z��	�G�r,

?>