Your IP : 3.15.26.184


Current Path : /opt/alt/python311/lib64/python3.11/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/sysconfig.cpython-311.opt-2.pyc

�

c��f�0��v�	ddlZddlZddlZddlZddlZddlmZddlmZddl	m
ZmZ
mZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$e"��Z%ej&de'd���dd	�Zeed
���Z(eee%��Zeee%��Z)dd�Z*d
Z+	esej,Z+n#e-$rYnwxYwd�Z.dd�Z/dd�Z0dS)�N)�partial�)�DistutilsPlatformError)�_PREFIX�_BASE_PREFIX�_EXEC_PREFIX�_BASE_EXEC_PREFIX�
_PROJECT_BASE�
_PYTHON_BUILD�_init_posix�parse_config_h�_init_non_posix�_variable_rx�_findvar1_rx�_findvar2_rx�expand_makefile_vars�is_python_build�get_config_h_filename�get_config_var�get_config_vars�get_makefile_filename�get_python_versionzCThe distutils.sysconfig module is deprecated, use sysconfig instead�)�
stacklevelc�$�t||���S)N)�vars)�sysconfig_parse_config_h)�fp�gs  �:/opt/alt/python311/lib64/python3.11/distutils/sysconfig.pyr
r
=s��#�B�Q�/�/�/�/�T)�
check_homec�6�	ddlm}||dddd���}|�i}i}i}	|���}|�n�tjt
|��}|r�|�dd��\}}	|	���}	|	�dd	��}
d
|
vr|	||<n?	t|	��}	|	||<n)#t$r|	�dd
��||<YnwxYw��d}|�r�t|��D�]�}||}
tjt|
��ptjt|
��}|�rk|�d��}d}||vrt||��}nz||vrd}ns|t jvrt j|}nR||vrG|�d
��r|dd�|vrd	}n*d
|z|vrd}n t|d
|z��}nd	x||<}|r�|
|���d�}|
d|����|z|z}
d
|vr|
||<��8t|
��}
|
||<n'#t$r|
���||<YnwxYw||=|�d
��r|dd�|vr|dd�}||vr|
||<���||=���|���|���|���D]1\}}	t/|	t��r|	���||<�2|�|��|S)Nr)�TextFiler�surrogateescape)�strip_comments�skip_blanks�
join_lines�errorsTrz$$��$)�CFLAGS�LDFLAGS�CPPFLAGSF�PY_�)�distutils.text_filer$�readline�re�matchr�group�strip�replace�int�
ValueError�list�searchrr�str�os�environ�
startswith�end�start�close�items�
isinstance�update)�fnrr$r�done�notdone�line�m�n�v�tmpv�renamed_variables�name�value�found�item�after�ks                  r �parse_makefilerUHs����
-�,�,�,�,�,�	��"�Q�A�!�L]�	^�	^�	^�B��y���
�D��G� ��{�{�}�}���<���H�\�4�(�(���	 ��7�7�1�a�=�=�D�A�q����	�	�A��9�9�T�2�&�&�D��d�{�{����
�
� ��A���A�
 �D��G�G��	"�3�3�3��i�i��c�2�2�D��G�G�G�3����! �4:���0"���M�M�/	"�/	"�D��D�M�E��	�,��.�.�P�"�)�L�%�2P�2P�A��,
"��G�G�A�J�J������9�9��t�A�w�<�<�D�D��'�\�\�!�E�E��"�*�_�_��:�a�=�D�D��+�+�+����u�-�-�4�$�q�r�r�(�>O�2O�2O�!������g�-�-� %��� #�4���	�?�3�3���%'�'�D��G�d��3�!�!�%�%�'�'�(�(�O�E�!�*�1�7�7�9�9�*�-��4�u�<�E��e�|�|�(-���
�
�%(��Z�Z�U�*/�D��J�J�� *�7�7�7�).�����D��J�J�J�7����$�D�M��?�?�5�1�1�3� $�Q�R�R��,=� =� =�#'����8�D�#�4�/�/�-2��T�
���D�M�M�a�0"�d�H�H�J�J�J��
�
��� � ���1��a����	 ��g�g�i�i�D��G���H�H�T�N�N�N��Hs$�"B7�7#C�C�-I�!I&�%I&r*c
�$�	|jdk�r�tjdkrBt�d��s(ddl}|�t��dtd<tdddd	d
ddd
��\}}}}}}}}	dtj	vratj	d}
tjdkr=d
tj	vr/|�
|��r|
|t|��d�z}|
}dtj	vrtj	d}d
tj	vrtj	d
}dtj	vrtj	d}n|dz}dtj	vr|dztj	dz}dtj	vr0|dztj	dz}|dztj	dz}dtj	vrH|dztj	dz}|dztj	dz}|dztj	dz}dtj	vrtj	d}d
tj	vr|dztj	d
z}n|dz|	z}|dz|z}
|�||
|
dz|z||||���||_
dSdS)N�unix�darwin�CUSTOMIZED_OSX_COMPILERr�True�CC�CXXr,�CCSHARED�LDSHARED�SHLIB_SUFFIX�AR�ARFLAGS�CPPz -Er-� r.)�preprocessor�compiler�compiler_so�compiler_cxx�	linker_so�
linker_exe�archiver)�
compiler_type�sys�platform�_config_vars�get�_osx_support�customize_compilerrr=r>r?�len�set_executables�shared_lib_extension)rerp�cc�cxx�cflags�ccshared�ldshared�shlib_suffix�ar�ar_flags�newcc�cpprj�cc_cmds              r rqrq�s����
���'�'��<�8�#�#� �#�#�$=�>�>�
A�#�#�#�#��/�/��=�=�=�:@��6�7�
�D�%��&�
�N�D�)�
U�
U�	J��S�&�(�H�l�B���2�:����J�t�$�E����(�(�"�"�*�4�4� �+�+�B�/�/�5�!�8�C��G�G�H�H�#5�5���B��B�J����*�U�#�C����#�#��z�*�-�H��B�J����*�U�#�C�C��u�*�C���
�"�"��#�~��
�9�(=�=�H��r�z�!�!��c�\�B�J�x�$8�8�F��#�~��
�8�(<�<�H����#�#���)�b�j��4�4�C��c�\�B�J�z�$:�:�F��#�~��
�:�(>�>�H��2�:�����D�!�B���
�"�"��C�x�"�*�Y�"7�7�H�H��C�x�(�*�H��c��F�"��� � ������x�/�����	!�	�	�	�)5��%�%�%�}(�'r!c��	|�|rtpt}tjdkr�trU|rt
Stj�td��d��}tj�	|��Sdt��ztz}tj�|d|��StjdkrztrStj�|d��tjjztj�|d��zStj�|d��Stdtjz���)	N�posix�srcdir�Include�python�include�nt�PCzFI don't know where Python installs its C header files on platform '%s')�BASE_EXEC_PREFIX�BASE_PREFIXr=rO�python_build�project_base�path�joinr�normpathr�build_flags�pathsepr)�
plat_specific�prefix�incdir�
python_dirs    r �get_python_incr�s)��	��~��3�#3�B�{��	�w�'����
	0��
0�#�#�����n�X�&>�&>�	�J�J���w�'�'��/�/�/�� 2� 4� 4�4�{�B�
��w�|�|�F�I�z�:�:�:�	��D����	0��G�L�L���3�3�b�g�o�E��G�L�L���.�.�/�
0��w�|�|�F�I�.�.�.�$�
�!#��
)�*�*�	*r!c��	|�#|r|rtpt}n|rtpt}tjdkrg|s|r
tj}nd}tj�	||dt��z��}|r|Stj�	|d��StjdkrC|r tj�	|d��Stj�	|dd��Stdtjz���)Nr��libr�z
site-packagesr��Libz?I don't know where Python installs its library on platform '%s')r�r��EXEC_PREFIX�PREFIXr=rOrl�
platlibdirr�r�rr)r��standard_libr��libdir�	libpythons     r �get_python_libr�0s����~��	=�"�7�'7�F�;�F�F�"�2�{�<�f�F�	�w�'����	�L�	��^�F�F��F��G�L�L���!)�,>�,@�,@�!@�B�B�	��	<����7�<�<�	�?�;�;�;�	��D����	@��7�<�<���.�.�.��7�<�<����?�?�?�$�
�!#��
)�*�*�	*r!)N)rN)rrN)1�_impr=r3rl�warnings�	functoolsrr)r�	sysconfigrr�rr�rr�r	r�r
r�rr�r�sysconfig_init_posixr
rrrrrrrrrrrrrn�warn�DeprecationWarning�
_python_build�_init_ntrUr��abiflags�AttributeErrorrqr�r��r!r �<module>r�sL��	�����	�	�	�	�	�	�	�	�
�
�
�
�����������*�*�*�*�*�*�������������������������������������������:�� � ��
��
�I�������0�0�0�0����D�9�9�9�
��g�*�L�9�9���7�?�L�1�1��
f
�f
�f
�f
�^��	��#��l�����	�	�	�	�D�	����D5�D5�D5�N%*�%*�%*�%*�P**�**�**�**�**�**s�	B#�#B+�*B+

?>