%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.12/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.12/__pycache__/_distutils_system_mod.cpython-312.pyc

�

���fT����dZddlZddlZddlZddlmcmZddl	mcm
Zddl	mZm
Z
mZddlmZGd�dej�ZGd�dej�Z
d	�Zd
�Zd�Zd�Zd
�Ze�y)a
Apply Debian-specific patches to distutils commands.

Extracts the customized behavior from patches as reported
in pypa/distutils#2 and applies those customizations (except
for scheme definitions) to those commands.

Place this module somewhere in sys.path to take effect.
�N)�to_filename�	safe_name�safe_version)�DistutilsOptionErrorc�r��eZdZeej
j�dgzZ�fd�Z�fd�Z�fd�Z	�xZ
S)�install)zinstall-layout=Nz7installation layout to choose (known values: deb, unix)c�>��t�|��d|_d|_y�N��super�initialize_options�
prefix_option�install_layout��self�	__class__s ��,/usr/lib/python3.12/_distutils_system_mod.pyr
zinstall.initialize_options����
��"�$�!���"���c���|dk(r�|jrI|jj�dvrd}n�|jj�dvrd}n�td��|jr,tj
j
|j�dk7s
t�rd}nJtj
j
|j�dk(rdx|_|_	dx|_
|_d}t�|�5|�y)	N�posix_prefix)�deb�
deb_system)�unix�"unknown value for --install-layout�
/usr/local�/usr�posix_local)r�lowerrr�os�path�normpath�prefix�is_virtual_environment�exec_prefix�install_base�install_platbaser�
select_scheme)r�namers  �rr(zinstall.select_scheme$s�����>�!��"�"��&�&�,�,�.�'�9�'�D��(�(�.�.�0�H�<�)�D�.�<�>�>��%�%��7�7�#�#�D�K�K�0�L�@�+�-�%���7�7�#�#�D�K�K�0�L�@�5;�;�D�K�$�"2�@F�F�D�%��(=�$��
���d�#rc�D��|j|_t�|�
�yr
)r#rr�
finalize_unixrs �rr+zinstall.finalize_unix9s���!�[�[���
���r)�__name__�
__module__�__qualname__�list�orig_installr�user_optionsr
r(r+�
__classcell__�rs@rrrs=�����,�,�9�9�:�	D�>��L�
#�
$�* � rrc�x��eZdZeej
j�dgzZ�fd�Z�fd�Ze	d��Z
�xZS)�install_egg_info)zinstall-layoutNzcustom installation layoutc�>��t�|��d|_d|_yr
rrs �rr
z#install_egg_info.initialize_optionsCrrc�j��|jdd�|jdd�t�|�	�y)Nr)rr)rr)�set_undefined_optionsr�finalize_optionsrs �rr9z!install_egg_info.finalize_optionsHs0����"�"�9�-P�Q��"�"�9�-N�O�
�� �"rc�h�|jrE|jj�dvrtd��|jj�dk(}n|jrd}nd}|r^t	t|jj����dt	t|jj����d�}|Sdt	t|jj���t	t|jj���gtjdd	��z}|S)
N)rrrrFT�-z	.egg-infoz%s-%s-py%d.%d.egg-info�)rrrrrr�distribution�get_namer�get_version�sys�version_info)r�no_pyver�basenames   rrCzinstall_egg_info.basenameMs������&�&�,�,�.�/�A�*�8�:�:��+�+�1�1�3�u�<�H�
�
�
��H��H���I�d�&7�&7�&@�&@�&B�C�D��L��):�):�)F�)F�)H�I�J��H���0��I�d�&7�&7�&@�&@�&B�C�D��L��):�):�)F�)F�)H�I�J�3��!�!�"�1�%�3��H�
�r)r,r-r.r/�orig_install_egg_infor5r1r
r9�propertyrCr2r3s@rr5r5>sF����-�>�>�K�K�L�>�P��L�#�
#�
���rr5c�h�tjtjk7xsttd�S)N�real_prefix)r@�base_prefixr#�hasattr�rrr$r$fs!���?�?�c�j�j�(�G�G�C��,G�Grc���|xs!tjj|�dv}|r|S|r,t�s"tjj	|ddd�Stjj	|d�S)N)rr�lib�python3z
dist-packagesz
site-packages)r r!r"r$�join)�standard_lib�	libpython�early_prefixr#�is_default_prefixs     r�
_posix_librSjse��(�(�d�B�G�G�,<�,<�\�,J�Nd�,d�����	�#9�#;��w�w�|�|�F�E�9�o�F�F��w�w�|�|�I��7�7rc��d|vrA|dk(r|d}ntjdd}|dk(rd|vr|jdd�}||d<|S)aN
    Given a scheme name and the resolved scheme,
    if the scheme does not include headers, resolve
    the fallback scheme for the name and use headers
    from it. pypa/distutils#88

    headers: module headers install location (posix_local is /local/ prefixed)
    include: cpython headers (Python.h)
    See also: bpo-44445
    �headersr�includerz/local/z	/include/z/local/include/)r0�INSTALL_SCHEMES�replace)r)�schemerUs   r�_inject_headersrZtsb������>�!��Y�'�G�"�2�2�>�B�9�M�G��=� �Y�g�%=��o�o�k�3D�E�G�#��y���Mrc����fd�}|S)z�
    Implement the _inject_headers modification, above, but before
    _inject_headers() was introduced, upstream. So, slower and messier.
    c�^����}|j�D]\}}t||��|Sr
)�itemsrZ)�schemesr)rY�
_load_schemess   �r�wrapped_load_schemesz2load_schemes_wrapper.<locals>.wrapped_load_schemes�s2����/��#�M�M�O�	*�L�D�&��D�&�)�	*��rrJ)r_r`s` r�load_schemes_wrapperra�s���
�
 �rc��tt_tt_tt
j_ttd�rtt_yttd�r#ttj�t_
yy)NrZr_)rr0r5rDrS�	distutils�	sysconfigrIrZrar_rJrr�apply_customizationsre�sV��"�L��-=��*�%/�I���"��|�.�/�'6��$�	���	/�%9�,�:T�:T�%U��"�
0r)�__doc__r r@�distutils.sysconfigrc�distutils.command.install�commandrr0�"distutils.command.install_egg_infor5rDrrr�distutils.errorsrr$rSrZrarerJrr�<module>rlsz���
�
��0�0�B�B���
2�" �l�"�"�" �J%�,�=�=�%�PH�8��,
 �
V��r

Zerion Mini Shell 1.0